Telnet Constructor
Namespace: Rebex.Net
Assembly: Rebex.Telnet.dll (version 7.0.9119)
Telnet(String)
Initializes a new instance of the Telnet class, using default port 23 and no SSL.
Declaration
public Telnet(string serverName)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
Telnet(String, Int32)
Initializes a new instance of the Telnet class, using specified port and no SSL.
Declaration
public Telnet(string serverName, int serverPort)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
Int32 | serverPort | The server port (eg. 23). |
Telnet(String, SslMode)
Initializes a new instance of the Telnet class, using default port 23 and specified SSL mode.
Declaration
public Telnet(string serverName, SslMode security)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
SslMode | security | Connection security. |
Telnet(String, Int32, SslMode)
Initializes a new instance of the Telnet class, using specified port and SSL mode.
Declaration
public Telnet(string serverName, int serverPort, SslMode security)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
Int32 | serverPort | The server port (eg. 23). |
SslMode | security | Connection security. |