Class EndpointBuilder
Inheritance
System.Object
EndpointBuilder
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)
System.Object.ToString()
Namespace: Catalyst.Core.Lib.Network
Assembly: Catalyst.Core.Lib.dll
Syntax
public static class EndpointBuilder
Methods
| Improve this Doc View SourceBuildNewEndPoint(IPAddress, Int32)
Declaration
public static IPEndPoint BuildNewEndPoint(IPAddress ip, int port)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | ip | |
System.Int32 | port |
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |
BuildNewEndPoint(String)
Handles IPv4 and IPv6 notation. of an ip:port string
Declaration
public static IPEndPoint BuildNewEndPoint(string endPoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPoint |
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |
Exceptions
Type | Condition |
---|---|
System.FormatException |
BuildNewEndPoint(String, Int32)
Declaration
public static IPEndPoint BuildNewEndPoint(string ip, int port)
Parameters
Type | Name | Description |
---|---|---|
System.String | ip | |
System.Int32 | port |
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |