libnetconf 0.10.0-0.10.0
NETCONF Library
Loading...
Searching...
No Matches
transport.h
Go to the documentation of this file.
1
40#ifndef NC_TRANSPORT_H_
41#define NC_TRANSPORT_H_
42
43#include "netconf.h"
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
59
84struct nc_session *nc_session_connect(const char *host, unsigned short port, const char *username, const struct nc_cpblts* cpblts);
85
103struct nc_session *nc_session_connect_channel(struct nc_session *session, const struct nc_cpblts* cpblts);
104
141struct 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);
142
165struct nc_session *nc_session_accept(const struct nc_cpblts* capabilities);
166
186struct nc_session *nc_session_accept_username(const struct nc_cpblts* capabilities, const char* username);
187
209struct nc_session *nc_session_accept_inout(const struct nc_cpblts* capabilities, const char* username, int input, int output);
210
211#ifdef __cplusplus
212}
213#endif
214
215#endif /* NC_TRANSPORT_H_ */
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 ...
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...
int nc_session_transport(NC_TRANSPORT proto)
Set transport protocol for the sessions created by subsequent nc_session_connect() calls....
NC_TRANSPORT
Supported NETCONF transport protocols enumeration. To change currently used transport protocol,...
Definition netconf.h:410
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.
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(const struct nc_cpblts *capabilities)
Accept NETCONF session from a client.
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...
libnetconf's general public functions and structures definitions.