Class Ip
Inheritance
System.Object
Ip
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 Ip
Fields
| Improve this Doc View SourceDefaultIpEchoUrls
Declaration
public static readonly ReadOnlyCollection<string> DefaultIpEchoUrls
Field Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.String> |
Methods
| Improve this Doc View SourceBuildIpAddress(String)
Declaration
public static IPAddress BuildIpAddress(string ipOrHost)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipOrHost |
Returns
Type | Description |
---|---|
System.Net.IPAddress |
GetPublicIpAsync(IObservable<String>)
Declaration
public static Task<IPAddress> GetPublicIpAsync(IObservable<string> ipEchoUrls = null)
Parameters
Type | Name | Description |
---|---|---|
System.IObservable<System.String> | ipEchoUrls |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Net.IPAddress> |
To16Bytes(IPAddress)
Creates a standardised format byte array that can handle a IPv6 address or an IPv4 with leading bytes padded with 0x0
Declaration
public static byte[] To16Bytes(this IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address |
Returns
Type | Description |
---|---|
System.Byte[] |