Delegate ChannelBuilder
Namespace: Void.Proxy.Api.Network.Channels
Assembly: Void.Proxy.Api.dll
Creates a network channel for one side of a player’s proxied connection.
public delegate ValueTask<INetworkChannel> ChannelBuilder(IPlayer player, Side side, NetworkStream networkStream, CancellationToken cancellationToken)Parameters
player IPlayer
The player whose connection the channel belongs to.
side Side
The side of the proxied connection represented by the channel.
networkStream NetworkStream
The connected stream that the channel will use for network I/O.
cancellationToken CancellationToken
A token that may be used to cancel asynchronous channel creation.
Returns
A task whose result is the channel created over networkStream.