IPAddress.binary


Description:

[ CCode ( has_construct_function = false ) ]
public IPAddress.binary (int family, void* addr, uint prefix) throws Error

Creates a new IPAddress object.

addr must point to a buffer of the correct size for family.

Parameters:

family

the IP address family (<literal>AF_INET</literal> or <literal>AF_INET6</literal>)

addr

the IP address

prefix

the address prefix length

Returns:

the new IPAddress object, or null on error