Interface INetworkListener
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
Interface for listening to network stream connections.
public interface INetworkListener
- Extension Methods
Methods
AcceptTcpClientAsync(bool, int?, int?, ILogger, CancellationToken)
Wait until a TCP client is trying to connect, and return the accepted TCP client.
Task<TcpClient> AcceptTcpClientAsync(bool noDelay, int? receiveBufferSize, int? sendBufferSize, ILogger logger, CancellationToken token)
Parameters
noDelay
boolNo delay?
receiveBufferSize
int?The size of the receive buffer of the underlying TCP connection
sendBufferSize
int?The size of the send buffer of the underlying TCP connection
logger
ILoggerThe logger
token
CancellationTokenCancellation token.
Returns
StartAsync()
Start listening.
Task StartAsync()
Returns
Stop()
Stop listening.
void Stop()