SyslogClient.Connect Method
Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9119)
Connect(String, SyslogTransportProtocol)
Connects the client to the specified syslog server.
Declaration
public void Connect(string serverName, SyslogTransportProtocol protocol)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string address. |
SyslogTransportProtocol | protocol | The transport layer protocol to use. |
Connect(String, Int32, SyslogTransportProtocol)
Connects the client to the specified syslog server.
Declaration
public void Connect(string serverName, int port, SyslogTransportProtocol protocol)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string address. |
Int32 | port | The server port (e.g. 514). |
SyslogTransportProtocol | protocol | The transport layer protocol to use. |