Search Results for

    Show / Hide Table of Contents

    Class ServerAddress

    An IP address and port, along with optional public IP addresses for listening behind a 1:1 NAT.

    Inheritance
    System.Object
    TransportAddress
    ServerAddress
    Inherited Members
    TransportAddress.IPAddress
    TransportAddress.Port
    TransportAddress.AddressType
    TransportAddress.ToString()
    TransportAddress.GetHashCode()
    TransportAddress.Equals(Object)
    TransportAddress.IsIPAddress(String)
    TransportAddress.SanitizeIPAddress(String)
    TransportAddress.CheckMask(String, String, String)
    TransportAddress.MaskFromPrefixLength(Int32)
    TransportAddress.MaskFromPrefixLength(Int32, Boolean)
    TransportAddress.IsIPv4(String)
    TransportAddress.IsIPv6(String)
    TransportAddress.IsPrivate(String)
    TransportAddress.IsReserved(String)
    TransportAddress.IsLinkLocal(String)
    TransportAddress.IsMulticast(String)
    TransportAddress.IsLimitedBroadcast(String)
    TransportAddress.IsDocumentation(String)
    TransportAddress.IsSource(String)
    TransportAddress.IsLoopback(String)
    TransportAddress.Is6To4(String)
    TransportAddress.IsOrchid(String)
    TransportAddress.IsTeredo(String)
    TransportAddress.IsDiscard(String)
    TransportAddress.IsAny(String)
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class ServerAddress : TransportAddress

    Constructors

    ServerAddress(String, Int32)

    Initializes a new instance of the ServerAddress class.

    Declaration
    public ServerAddress(string ipAddress, int port)
    Parameters
    Type Name Description
    System.String ipAddress

    The IP address.

    System.Int32 port

    The port.

    ServerAddress(String, Int32, String)

    Initializes a new instance of the ServerAddress class.

    Declaration
    public ServerAddress(string ipAddress, int port, string publicIPAddress)
    Parameters
    Type Name Description
    System.String ipAddress

    The IP address.

    System.Int32 port

    The port.

    System.String publicIPAddress

    The public IP address.

    ServerAddress(String, Int32, String[])

    Initializes a new instance of the ServerAddress class.

    Declaration
    public ServerAddress(string ipAddress, int port, string[] publicIPAddresses)
    Parameters
    Type Name Description
    System.String ipAddress

    The IP address.

    System.Int32 port

    The port.

    System.String[] publicIPAddresses

    The public IP addresses.

    Properties

    PublicIPAddress

    Gets the first public IP address.

    Declaration
    public string PublicIPAddress { get; }
    Property Value
    Type Description
    System.String

    PublicIPAddresses

    Gets the public IP addresses.

    Declaration
    public string[] PublicIPAddresses { get; }
    Property Value
    Type Description
    System.String[]
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0