Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Interface INetworkListener

    Interface for listening to network stream connections.

    Namespace: FellowOakDicom.Network
    Assembly: fo-dicom.core.dll
    Syntax
    public interface INetworkListener

    Methods

    AcceptTcpClientAsync(Boolean, Nullable<Int32>, Nullable<Int32>, ILogger, CancellationToken)

    Wait until a TCP client is trying to connect, and return the accepted TCP client.

    Declaration
    Task<TcpClient> AcceptTcpClientAsync(bool noDelay, int? receiveBufferSize, int? sendBufferSize, ILogger logger, CancellationToken token)
    Parameters
    Type Name Description
    System.Boolean noDelay

    No delay?

    System.Nullable<System.Int32> receiveBufferSize

    The size of the receive buffer of the underlying TCP connection

    System.Nullable<System.Int32> sendBufferSize

    The size of the send buffer of the underlying TCP connection

    Microsoft.Extensions.Logging.ILogger logger

    The logger

    System.Threading.CancellationToken token

    Cancellation token.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Net.Sockets.TcpClient>

    Connected network stream.

    StartAsync()

    Start listening.

    Declaration
    Task StartAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    An awaitable System.Threading.Tasks.Task.

    Stop()

    Stop listening.

    Declaration
    void Stop()

    Extension Methods

    LinqExtensions.IsOneOf<T>(T, T[])
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors