Class TcpMultiplexedListener
Represents a server-side of the multiplexing protocol on top of TCP.
Inherited Members
Namespace: DotNext.Net.Multiplexing
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TcpMultiplexedListener : MultiplexedListener, IDisposable, IAsyncDisposable
Constructors
| Edit this page View SourceTcpMultiplexedListener(EndPoint, Options)
Represents a server-side of the multiplexing protocol on top of TCP.
Declaration
public TcpMultiplexedListener(EndPoint listenAddress, MultiplexedListener.Options configuration)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | listenAddress | The local endpoint to listen to. |
MultiplexedListener.Options | configuration | The configuration of the listener. |
Methods
| Edit this page View SourceConfigureAcceptedSocket(Socket)
Configures the socket associated with the incoming connection.
Declaration
protected override void ConfigureAcceptedSocket(Socket socket)
Parameters
Type | Name | Description |
---|---|---|
Socket | socket | The socket that represents the incoming connection. |
Overrides
Remarks
By default, this method does nothing.
Listen()
Creates listening socket.
Declaration
protected override sealed Socket Listen()
Returns
Type | Description |
---|---|
Socket | Listening socket. |