snmdb_enumerate_connections manual page
Table of Contents

NAME

snmdb_enumerate_connections - enumerates all the connections of the element

SYNOPSIS

#include <netmgt/netmgt_db.h>

char **
snmdb_enumerate_connections(buffer)
snmdb_buffer *buffer;

DESCRIPTION

Connections are described in the connect record in the element buffer. snmdb_enumerate_connections enumerates all the connect records in the buffer and returns a pointer pointing to the list of all the names to which the element is connected. After using the list, you should call snmdb_free_list(3n) to free the space.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

RETURN VALUE

Returns a NULL terminated list of all the names to which the element is connected. Returns NULL if an error occurs, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_free_list(3n)


Table of Contents