SyslogServer.Bind Method
Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9448)
Bind(SyslogTransportProtocol)
Binds the specified protocol listener to its default port on all network IPv4 interfaces.
Declaration
public SyslogBinding Bind(SyslogTransportProtocol protocol)
Parameters
| Type | Name | Description |
|---|---|---|
| SyslogTransportProtocol | protocol | Protocol to be used. |
Returns
| Type | Description |
|---|---|
| SyslogBinding | The associated SyslogBinding. |
Bind(Int32, SyslogTransportProtocol)
Binds the server to the specified port on all network IPv4 interfaces.
Declaration
public SyslogBinding Bind(int port, SyslogTransportProtocol protocol)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | port | A port to listen on. |
| SyslogTransportProtocol | protocol | Protocol to be used. |
Returns
| Type | Description |
|---|---|
| SyslogBinding | The associated SyslogBinding. |
Bind(IPEndPoint, SyslogTransportProtocol)
Binds the server to the specified endpoint.
Declaration
public SyslogBinding Bind(IPEndPoint endPoint, SyslogTransportProtocol protocol)
Parameters
| Type | Name | Description |
|---|---|---|
| IPEndPoint | endPoint | An IP endpoint to listen on. |
| SyslogTransportProtocol | protocol | Protocol to be used. |
Returns
| Type | Description |
|---|---|
| SyslogBinding | The associated SyslogBinding. |
Bind(SyslogBinding)
Binds the server to an endpoint using specified settings.
Declaration
public SyslogBinding Bind(SyslogBinding binding)
Parameters
| Type | Name | Description |
|---|---|---|
| SyslogBinding | binding | Binding settings. |
Returns
| Type | Description |
|---|---|
| SyslogBinding | The passed |
Bind(IEnumerable<SyslogBinding>)
Binds the server to the endpoints using specified settings.
Declaration
public void Bind(IEnumerable<SyslogBinding> bindings)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<SyslogBinding> | bindings | Enumeration of binding settings. |