Struct NetworkEndPoint
Describes a raw network endpoint (typically IP and port number).
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkEndPoint
Properties
Name | Description |
---|---|
Address | Gets the endpoint's representation as a string. |
Any |
Gets an IPv4 endpoint that can be used to bind to any address available (0.0.0.0:0). |
Any |
Gets an IPv6 endpoint that can be used to bind to any address available ([::0]:0). |
Family | Gets or sets Network |
Is |
Whether the endpoint is using an "any" address. |
Is |
Whether the endpoint is using a loopback address. |
Is |
Whether the endpoint is valid or not. |
Length | Returns the length of the raw network endpoint in bytes. |
Loopback |
Gets an IPv4 loopback endpoint (127.0.0.1:0). |
Loopback |
Gets an IPv6 loopback endpoint ([::1]:0). |
Port | Gets or sets port number of the endpoint. |
Raw |
Gets or sets the value of the raw port number. |
Methods
Name | Description |
---|---|
Equals(object) | Indicates whether this instance and a specified object are equal. |
Get |
Returns the hash code for this instance. |
Get |
Gets the raw bytes for the endpoint. |
Parse(string, ushort, Network |
Same as TryParse<T>, except an endpoint is always returned. If the given address, port, and family don't represent a valid endpoint, the default one is returned. |
Set |
Directly sets the raw bytes of the endpoint using the specified bytes and family. |
To |
Returns the fully qualified type name of this instance. |
Try |
Try to parse the given address and port into a new Network |
With |
Use the given port number for this endpoint. |