Class TcpMultiplexedClient
Represents a client-side of the multiplexing protocol on top of TCP.
Inherited Members
Namespace: DotNext.Net.Multiplexing
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TcpMultiplexedClient : MultiplexedClient, IDisposable, IAsyncDisposable, IPeer
Remarks
TCP multiplexer provides unencrypted multiplexed transport on top of TCP/IP stack. It should not be used for communication over the Internet or any other untrusted network. It's aimed for efficient communication between cluster nodes within the trusted LAN.
Constructors
View SourceTcpMultiplexedClient(EndPoint, Options)
Represents a client-side of the multiplexing protocol on top of TCP.
Declaration
public TcpMultiplexedClient(EndPoint address, TcpMultiplexedClient.Options configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| EndPoint | address | The address of the server. |
| TcpMultiplexedClient.Options | configuration | The configuration of the client. |
Remarks
TCP multiplexer provides unencrypted multiplexed transport on top of TCP/IP stack. It should not be used for communication over the Internet or any other untrusted network. It's aimed for efficient communication between cluster nodes within the trusted LAN.
Methods
View SourceConnectAsync(CancellationToken)
Creates a connected socket.
Declaration
protected override sealed ValueTask<Socket> ConnectAsync(CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask<Socket> | The connected socket. |