sockaddrToIP16

Converts a sockaddr to a 16-byte IP address.

@trusted
ubyte[IPCRYPT_KEYBYTES]
sockaddrToIP16
(
scope sockaddr* sa
)

Parameters

sa sockaddr*

The sockaddr structure.

Return Value

Type: ubyte[IPCRYPT_KEYBYTES]

The 16-byte IP address.

Throws

Exception if the conversion fails.

Meta