Class EndPoint
EndPoint class.
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)
Create new instance of the EndPoint class.
Declaration
public EndPoint(Address addr, ushort port)
Parameters
Type | Name | Description |
---|---|---|
Address | addr | Adress. |
System.UInt16 | port | Port. |
Fields
| Improve this Doc View SourceAddress
Address.
Declaration
public Address Address
Field Value
Type | Description |
---|---|
Address |
Port
Port.
Declaration
public ushort Port
Field Value
Type | Description |
---|---|
System.UInt16 |
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. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if obj is not a EndPoint. |
ToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |
Overrides
System.Object.ToString()
Implements
System.IComparable