Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class DesktopNetworkListener

    .NET implementation of the INetworkListener.

    Inheritance
    System.Object
    DesktopNetworkListener
    Implements
    INetworkListener
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FellowOakDicom.Network
    Assembly: fo-dicom.core.dll
    Syntax
    public class DesktopNetworkListener : 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
    public async 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
    public Task StartAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    An awaitable System.Threading.Tasks.Task.

    Stop()

    Stop listening.

    Declaration
    public void Stop()

    Implements

    INetworkListener

    Extension Methods

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