58 struct nc_mngmt_server;
120 #ifndef DISABLE_LIBSSH
171 struct nc_session*
nc_callhome_accept(
const char *username,
const struct nc_cpblts* cpblts,
int *timeout);
216 int nc_callhome_connect(
struct nc_mngmt_server *host_list, uint8_t reconnect_secs, uint8_t reconnect_count,
const char* server_path,
char *
const argv[],
int *com_socket);
int nc_callhome_listen_stop(void)
Stop listening on client side for incoming Call Home connection.
int nc_callhome_listen(unsigned int port)
Start listening on client side for incoming Call Home connection.
int nc_callhome_mngmt_server_rm(struct nc_mngmt_server *list, struct nc_mngmt_server *remove)
Remove the specified management server description from the list.
struct nc_mngmt_server * nc_callhome_mngmt_server_getactive(struct nc_mngmt_server *list)
Searches for the item from the list, which was marked and used by the last call to nc_callhome_connec...
struct nc_mngmt_server * nc_callhome_mngmt_server_add(struct nc_mngmt_server *list, const char *host, const char *port)
Add a new management server specification to the end of a list.
struct nc_session * nc_callhome_accept(const char *username, const struct nc_cpblts *cpblts, int *timeout)
Accept incoming Call Home connection and create NETCONF session on it.
libnetconf's general public functions and structures definitions.
int nc_callhome_mngmt_server_free(struct nc_mngmt_server *list)
Free a management server description structure(s). The function doesn't free only the item refered by...
int nc_callhome_connect(struct nc_mngmt_server *host_list, uint8_t reconnect_secs, uint8_t reconnect_count, const char *server_path, char *const argv[], int *com_socket)
Connect NETCONF server to a management center (NETCONF client) using Call Home mechanism.