Table of Contents

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 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.

public Task StartAsync()

Returns

Task

An awaitable Task.

Stop()

Stop listening.

public void Stop()