Class UdpEndPoint
Cross platform representation of a UDP end point, being an IP address (either IPv4 or IPv6) and a port.
Inheritance
System.Object
UdpEndPoint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public sealed class UdpEndPoint
Constructors
UdpEndPoint(String, Int32)
Full constructor.
Declaration
public UdpEndPoint(string ipAddress, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ipAddress | A string representation of the IP address. |
| System.Int32 | port | The port number. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
| System.ArgumentOutOfRangeException | Thrown if |
Properties
IPAddress
The IP Address of the end point.
Declaration
public string IPAddress { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
Can be either IPv4 or IPv6, up to the code using this instance to determine which was provided.
Port
The port of the end point.
Declaration
public int Port { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()