Class DesktopNetworkListener
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
.NET implementation of the INetworkListener.
public class DesktopNetworkListener : INetworkListener
- Inheritance
-
DesktopNetworkListener
- Implements
- Inherited Members
- Extension Methods
Methods
AcceptTcpClientAsync(bool, int?, int?, ILogger, CancellationToken)
Wait until a TCP client is trying to connect, and return the accepted TCP client.
public 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.
public Task StartAsync()
Returns
Stop()
Stop listening.
public void Stop()