Class EndPoint
EndPoint class.
Inheritance
System.Object
EndPoint
Namespace: Cosmos.System.Network.IPv4
Assembly: Cosmos.System2.dll
Syntax
public class EndPoint : IComparable
Constructors
| Improve this Doc View SourceEndPoint(Address, UInt16)
Create new inctanse of the EndPoint class.
Declaration
public EndPoint(Address addr, UInt16 port)
Parameters
Type | Name | Description |
---|---|---|
Address | addr | Adress. |
UInt16 | port | Port. |
Methods
| Improve this Doc View SourceCompareTo(Object)
Compare end points.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Other end point to compare to. |
Returns
Type | Description |
---|---|
System.Int32 | -1 if end points are diffrent, 0 if equal. |
ToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |