These functions support
objects, used for communication over kernel routing sockets.
The routing socket messages are defined in the header file
instance is represented by a
creates a new, empty
destroys the object pointed to by
will be set to
is invoked, nothing happens.
routines allow reading and changing the attributes associated with a
decodes routing messages from data encoded in the format used when
communicating over kernel routing sockets.
The encoded data is pointed to by
and has length
Zero or more
objects are constructed and pointed to by the elements of a newly
allocated array of pointers.
The length of the array is returned by
and a pointer to the array is stored in
The array itself is allocated with
and the caller is responsible for eventually freeing it (as well as
destroying the individudal
If the encoded data is invalid, -1 is returned with
object into the format used when communicating over kernel routing sockets.
The resulting data is stored in the buffer pointed to by
which must have length at least
If the encoding does not fit in
bytes, -1 is returned with
Otherwise, the number of bytes actually written into
prints out a
object to the stream
for debugging purposes.
encodes and writes the
object to the routing socket descriptor
reads the next packet from the routing socket descriptor
objects from the data read.
parameters are the same as with