Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

SyslogClient.Connect Method

Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9147)

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.

In This Article
  • Connect(String, SyslogTransportProtocol)
  • Connect(String, Int32, SyslogTransportProtocol)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies