NAME

src/pmc/sockaddr.pmc - sockaddr_in/sockaddr_in6 holder

DESCRIPTION

The Sockaddr PMC holds a sockaddr struct and saves its length (to distinguish sockaddr_in and sockaddr_in6).

Vtable Functions

These are the vtable functions for the Sockaddr class.

void init()
Initializes the PMC.
void destroy()
Destroys the PMC and frees all allocated memory.
PMC *clone()
Creates a new Sockaddr PMC with the same contents and length as the current one.
INTVAL get_bool()
Returns true if the Sockaddr is defined.
INTVAL get_integer()
Returns the length of the sockaddr struct.
void *get_pointer()
Returns a pointer to the sockaddr_in or sockaddr_in6.
STRING *get_string()
Returns the string representation of this sockaddr by calling getnameinfo(3).
INTVAL get_integer_keyed_int(INTVAL what)
Returns family, type or protocol. Used for debugging.