libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
46 extern "C" {
47 #endif
48 
59 
84 struct nc_session *nc_session_connect(const char *host, unsigned short port, const char *username, const struct nc_cpblts* cpblts);
85 
103 struct nc_session *nc_session_connect_channel(struct nc_session *session, const struct nc_cpblts* cpblts);
104 
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);
142 
165 struct nc_session *nc_session_accept(const struct nc_cpblts* capabilities);
166 
186 struct nc_session *nc_session_accept_username(const struct nc_cpblts* capabilities, const char* username);
187 
209 struct 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_ */
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...