Struct PeerAddress
Represents a network peer address, supporting both IPv4 and IPv6.
public readonly struct PeerAddress
- Inherited Members
Fields
Bytes
The raw bytes of the address. For IPv6, this contains the full 16-byte address. For IPv4, this may be unused.
public readonly byte[] Bytes
Field Value
- byte[]
Ipv6
Indicates whether the address is an IPv6 address.
public readonly bool Ipv6
Field Value
V4
The IPv4 address represented as a 32-bit unsigned integer.
This field is only used if Ipv6 is false.
public readonly uint V4
Field Value
Methods
ToAddress()
Converts the peer address to an IPAddress instance.
public IPAddress ToAddress()