LumiSoft Net Help
Connect Method (host, port)
Namespaces ► LumiSoft.Net.TCP ► TCP_Client ► Connect(String, Int32)
Connects to the specified host. If the hostname resolves to more than one IP address, all IP addresses will be tried for connection, until one of them connects.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void Connect(
    	string host,
    	int port
    )

    Public Sub Connect (
    	host As String,
    	port As Integer
    )

    public:
    void Connect(
    	String^ host,
    	int port
    )

    member Connect :
            host : string *
            port : int -> unit

Parameters

host (String)
  Host name or IP address.

port (Int32)
  Port to connect.

Exceptions

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and this method is accessed.
InvalidOperationException | Is raised when TCP client is already connected.
ArgumentException | Is raised when any of the arguments has invalid value.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119