Loading...
Searching...
No Matches
session_server_ch.h
Go to the documentation of this file.
#ifndef NC_SESSION_SERVER_CH_H_
#define NC_SESSION_SERVER_CH_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <libyang/libyang.h>
#include <stdint.h>
#include <time.h>
#include "netconf.h"
#include "session.h"
#ifdef NC_ENABLED_SSH_TLS
int nc_server_ch_is_client(const char *name);
int nc_server_ch_client_is_endpt(const char *client_name, const char *endpt_name);
typedef const struct ly_ctx *(*nc_server_ch_session_acquire_ctx_cb)(void *cb_data);
typedef void (*nc_server_ch_session_release_ctx_cb)(void *cb_data);
typedef int (*nc_server_ch_new_session_cb)(const char *client_name, struct nc_session *new_session, void *user_data);
int nc_connect_ch_client_dispatch(const char *client_name, nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb,
nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb,
void *new_session_cb_data);
void nc_server_ch_set_dispatch_data(nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb,
nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb,
void *new_session_cb_data);
#endif /* NC_ENABLED_SSH_TLS */
#ifdef __cplusplus
}
#endif
#endif /* NC_SESSION_SERVER_CH_H_ */
nc_server_ch_client_is_endpt
int nc_server_ch_client_is_endpt(const char *client_name, const char *endpt_name)
Check if an endpoint of a Call Home client exists.
nc_connect_ch_client_dispatch
int nc_connect_ch_client_dispatch(const char *client_name, nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb, nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb, void *new_session_cb_data)
Dispatch a thread connecting to a listening NETCONF client and creating Call Home sessions.
nc_server_ch_new_session_cb
int(* nc_server_ch_new_session_cb)(const char *client_name, struct nc_session *new_session, void *user_data)
Callback for new Call Home sessions.
Definition session_server_ch.h:92
nc_server_ch_set_dispatch_data
void nc_server_ch_set_dispatch_data(nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb, nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb, void *new_session_cb_data)
Set callbacks and their data for Call Home threads.
nc_server_ch_session_release_ctx_cb
void(* nc_server_ch_session_release_ctx_cb)(void *cb_data)
Callback for releasing a locked context for Call Home sessions.
Definition session_server_ch.h:81
nc_server_ch_is_client
int nc_server_ch_is_client(const char *name)
Check if a Call Home client exists.
nc_server_ch_session_acquire_ctx_cb
const struct ly_ctx *(* nc_server_ch_session_acquire_ctx_cb)(void *cb_data)
Callback for getting a locked context for new Call Home sessions.
Definition session_server_ch.h:74
netconf.h
libnetconf2's general public functions and structures definitions.
session.h
libnetconf2 session manipulation