Class EndPoint
Represents an IPv4 end-point.
Inheritance
System.Object
EndPoint
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Cosmos.System.Network.IPv4
Assembly: Cosmos.System2.dll
Syntax
public class EndPoint : IComparable
Constructors
| Improve this Doc View SourceEndPoint(Address, UInt16)
Initializes a new instance of the EndPoint class.
Declaration
public EndPoint(Address addr, ushort port)
Parameters
Type | Name | Description |
---|---|---|
Address | addr | The IPv4 address. |
System.UInt16 | port | The port. |
EndPoint(UInt32, UInt16)
Initializes a new instance of the EndPoint class.
Declaration
public EndPoint(uint addr, ushort port)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | addr | The IPv4 address. |
System.UInt16 | port | The port. |
Fields
| Improve this Doc View SourceAddress
The address of the end-point.
Declaration
public Address Address
Field Value
Type | Description |
---|---|
Address |
Port
The port of the end-point.
Declaration
public ushort Port
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceCompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IComparable