Table of Contents

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 bool

No 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 ILogger

The logger

token CancellationToken

Cancellation token.

Returns

Task<TcpClient>

Connected network stream.

StartAsync()

Start listening.

Task StartAsync()

Returns

Task

An awaitable Task.

Stop()

Stop listening.

void Stop()