Table of Contents

Interface INetworkManager

Namespace
FellowOakDicom.Network
Assembly
fo-dicom.core.dll
public interface INetworkManager
Extension Methods

Properties

MachineName

Gets the machine name

string MachineName { get; }

Property Value

string

Methods

CreateNetworkListener(string, int)

Platform-specific implementation to create a network listener object.

INetworkListener CreateNetworkListener(string ipAddress, int port)

Parameters

ipAddress string

IP address(es) to listen to.

port int

Network port to listen to.

Returns

INetworkListener

Network listener implementation.

CreateNetworkStream(NetworkStreamCreationOptions)

Platform-specific implementation to create a network stream object.

INetworkStream CreateNetworkStream(NetworkStreamCreationOptions options)

Parameters

options NetworkStreamCreationOptions

The various options that specify how the network stream must be created

Returns

INetworkStream

Network stream implementation.

CreateNetworkStream(TcpClient, ITlsAcceptor, bool)

Platform-specific implementation to create a network stream object from an existing TcpClient

INetworkStream CreateNetworkStream(TcpClient tcpClient, ITlsAcceptor tlsAcceptor, bool ownsTcpClient)

Parameters

tcpClient TcpClient

The inbound, connected TCP client

tlsAcceptor ITlsAcceptor

The TLS acceptor responsible for setting up TLS

ownsTcpClient bool

Whether or not the network stream owns the TCP client (i.e. the TCP client be disposed when the network stream is disposed)

Returns

INetworkStream

Network stream implementation.

IsSocketException(Exception, out int, out string)

Platform-specific implementation to check whether specified exception represents a socket exception.

bool IsSocketException(Exception exception, out int errorCode, out string errorDescriptor)

Parameters

exception Exception

Exception to validate.

errorCode int

Error code, valid if exception is socket exception.

errorDescriptor string

Error descriptor, valid if exception is socket exception.

Returns

bool

True if exception is socket exception, false otherwise.

TryGetNetworkIdentifier(out DicomUID)

Platform-specific implementation to attempt to obtain a unique network identifier, e.g. based on a MAC address.

bool TryGetNetworkIdentifier(out DicomUID identifier)

Parameters

identifier DicomUID

Unique network identifier, if found.

Returns

bool

True if network identifier could be obtained, false otherwise.