Search Results for

    Show / Hide Table of Contents

    Class ScopedNetworkManager

    Manager class for network operations.

    Inheritance
    Object
    ScopedNetworkManager
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.Network
    Assembly: cs.temp.dll.dll
    Syntax
    public class ScopedNetworkManager

    Constructors

    ScopedNetworkManager(NetworkManager)

    Declaration
    public ScopedNetworkManager(NetworkManager implementation)
    Parameters
    Type Name Description
    NetworkManager implementation

    Properties

    MachineName

    Gets machine name.

    Declaration
    public string MachineName { get; }
    Property Value
    Type Description
    String

    Methods

    CreateNetworkListener(Int32)

    Create a network listener object, listening to all IPv4 addressess.

    Declaration
    [Obsolete("Use the CreateNetworkListener(string, int) overload with IPv4Any in string argument.")]
    public INetworkListener CreateNetworkListener(int port)
    Parameters
    Type Name Description
    Int32 port

    Network port to listen to.

    Returns
    Type Description
    INetworkListener

    Network listener implementation.

    CreateNetworkListener(String, Int32)

    Create a network listener object.

    Declaration
    public INetworkListener CreateNetworkListener(string ipAddress, int port)
    Parameters
    Type Name Description
    String ipAddress

    IP address(es) to listen to.

    Int32 port

    Network port to listen to.

    Returns
    Type Description
    INetworkListener

    Network listener implementation.

    CreateNetworkStream(String, Int32, Boolean, Boolean, Boolean, Int32)

    Create a network stream object.

    Declaration
    public INetworkStream CreateNetworkStream(string host, int port, bool useTls, bool noDelay, bool ignoreSslPolicyErrors, int millisecondsTimeout = 5000)
    Parameters
    Type Name Description
    String host

    Network host.

    Int32 port

    Network port.

    Boolean useTls

    Use TLS layer?

    Boolean noDelay

    No delay?

    Boolean ignoreSslPolicyErrors

    Ignore SSL policy errors?

    Int32 millisecondsTimeout

    a timeout in milliseconds for creating a network stream

    Returns
    Type Description
    INetworkStream

    Network stream implementation.

    IsSocketException(Exception, out Int32, out String)

    Checks whether specified exception represents a socket exception.

    Declaration
    public bool IsSocketException(Exception exception, out int errorCode, out string errorDescriptor)
    Parameters
    Type Name Description
    Exception exception

    Exception to validate.

    Int32 errorCode

    Error code, valid if exception is socket exception.

    String errorDescriptor

    Error descriptor, valid if exception is socket exception.

    Returns
    Type Description
    Boolean

    True if exception is socket exception, false otherwise.

    TryGetNetworkIdentifier(out DicomUID)

    Attempt to obtain a unique network identifier, e.g. based on a MAC address.

    Declaration
    public bool TryGetNetworkIdentifier(out DicomUID identifier)
    Parameters
    Type Name Description
    DicomUID identifier

    Unique network identifier, if found.

    Returns
    Type Description
    Boolean

    True if network identifier could be obtained, false otherwise.

    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors