Connects to server.
Namespace: Lesnikowski.Client
Assembly: Mail (in Mail.dll)
Version: 2.7.2897.36617
Syntax
| C# |
|---|
public void Connect( string host, int port, bool useSSL ) |
| Visual Basic (Declaration) |
|---|
Public Sub Connect ( _ host As String, _ port As Integer, _ useSSL As Boolean _ ) |
| Visual C++ |
|---|
public: void Connect ( String^ host, int port, bool useSSL ) |
Parameters
- host
- String
Host name or IP address.
- port
- Int32
Port number.
- useSSL
- Boolean
if true creates SSL connection
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::ServerException | -ERR response, Connecting error. |
See Also
TcpTextClient Class
Lesnikowski.Client Namespace