40 #ifndef NC_TRANSPORT_H_
41 #define NC_TRANSPORT_H_
84 struct nc_session *
nc_session_connect(
const char *host,
unsigned short port,
const char *username,
const struct nc_cpblts* cpblts);
141 struct nc_session*
nc_session_connect_inout(
int fd_in,
int fd_out,
const struct nc_cpblts* cpblts,
const char *host,
const char *port,
const char *username,
NC_TRANSPORT transport);
209 struct nc_session *
nc_session_accept_inout(
const struct nc_cpblts* capabilities,
const char* username,
int input,
int output);
NC_TRANSPORT
Supported NETCONF transport protocols enumeration. To change currently used transport protocol...
Definition: netconf.h:410
struct nc_session * nc_session_accept(const struct nc_cpblts *capabilities)
Accept NETCONF session from a client.
struct nc_session * nc_session_connect_channel(struct nc_session *session, const struct nc_cpblts *cpblts)
Create another NETCONF session using already established SSH session. No authentication is needed in ...
int nc_session_transport(NC_TRANSPORT proto)
Set transport protocol for the sessions created by subsequent nc_session_connect() calls...
struct nc_session * nc_session_connect(const char *host, unsigned short port, const char *username, const struct nc_cpblts *cpblts)
Create NETCONF session to the specified server.
struct nc_session * nc_session_accept_inout(const struct nc_cpblts *capabilities, const char *username, int input, int output)
Accept NETCONF session from a client. It allows to assign the specified username to it and set file d...
struct nc_session * nc_session_accept_username(const struct nc_cpblts *capabilities, const char *username)
Accept NETCONF session from a client and assign it to the specified username.
libnetconf's general public functions and structures definitions.
struct nc_session * nc_session_connect_inout(int fd_in, int fd_out, const struct nc_cpblts *cpblts, const char *host, const char *port, const char *username, NC_TRANSPORT transport)
Create NETCONF session communicating via given file descriptors. This is an alternative function to n...