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, bool ssl )
Public Sub Connect ( host As String, port As Integer, ssl As Boolean )
public: void Connect( String^ host, int port, bool ssl )
member Connect : host : string * port : int * ssl : bool -> unit
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