Class Host
Netly: Host (EndPoint Manager)
Assembly: Netly.dll
View Source
Declaration
public class Host
Properties
Address
Return IPAddress
View Source
Declaration
public IPAddress Address { get; }
Port
Return Port
View Source
Declaration
public int Port { get; }
EndPoint
Return EndPoint
View Source
Declaration
public EndPoint EndPoint { get; }
IPEndPoint
Return IPEndPoint
View Source
Declaration
public IPEndPoint IPEndPoint { get; }
AddressFamily
Return AddressFamily
View Source
Declaration
public AddressFamily AddressFamily { get; }
Fields
Default
Return default Host instance: (0.0.0.0:0)
View Source
Declaration
public static readonly Host Default
Methods
ToString()
View Source
Declaration
public override string ToString()
Returns
System.String
Equals(object)
Compare Host. Check IP/Port
View Source
Declaration
public override bool Equals(object @object)
Returns
System.Boolean
Parameters
Type | Name | Description |
---|---|---|
System.Object | object | Object |
Equals(object, object)
Compare two (2) Host. Check IP/Port
View Source
Declaration
public static bool Equals(object objectA, object objectB)
Returns
System.Boolean
: Return true if those object is Host and have same value
Parameters
Type | Name | Description |
---|---|---|
System.Object | objectA | Object A |
System.Object | objectB | Object B |
GetHashCode()
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32