Class NetworkEndpoint
This class represent a network endpoint.
Inherited Members
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
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 |