Search Results for

    Show / Hide Table of Contents

    Class NetworkEndpoint

    This class represent a network endpoint.

    Inheritance
    object
    NetworkEndpoint
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Evergine.Networking
    Assembly: Evergine.Networking.dll
    Syntax
    public class NetworkEndpoint

    Constructors

    NetworkEndpoint(string, int)

    Initializes a new instance of the NetworkEndpoint class.

    Declaration
    public NetworkEndpoint(string address, int port)
    Parameters
    Type Name Description
    string address

    The IP address.

    int port

    The port.

    Properties

    Address

    Gets the IP address.

    Declaration
    public string Address { get; }
    Property Value
    Type Description
    string

    Port

    Gets the port.

    Declaration
    public int Port { get; }
    Property Value
    Type Description
    int

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Parse(string)

    Converts an IP address string with port to a NetworkEndpoint instance.

    Declaration
    public static NetworkEndpoint Parse(string epString)
    Parameters
    Type Name Description
    string epString

    A string that contains an IP address in dotted-quad notation for IPv4 followed by colon and the port number.

    Returns
    Type Description
    NetworkEndpoint

    A NetworkEndpoint instance.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX