libnetconf2  4.0.0
NETCONF server and client library in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
proxy_unix.h
Go to the documentation of this file.
1 
16 #ifndef NC_PROXY_UNIX_H_
17 #define NC_PROXY_UNIX_H_
18 
19 #include <stdint.h>
20 
21 #include "session.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
42 int nc_proxy_unix_connect(const char *address, const char *username);
43 
56 int nc_proxy_read_msg(int fd, NC_PROT_VERSION version, int timeout_ms, char **buf, uint32_t *buf_len);
57 
71 int nc_proxy_write_msg(int fd, NC_PROT_VERSION version, const char *buf, uint32_t buf_len);
72 
80 int nc_proxy_unix_close(int fd);
81 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* NC_PROXY_UNIX_H_ */
int nc_proxy_read_msg(int fd, NC_PROT_VERSION version, int timeout_ms, char **buf, uint32_t *buf_len)
Read a full chunked-framing message from a FD.
libnetconf2 session manipulation
int nc_proxy_write_msg(int fd, NC_PROT_VERSION version, const char *buf, uint32_t buf_len)
Write data encapsulated as a chunked-framing message to a FD.
int nc_proxy_unix_connect(const char *address, const char *username)
Connect to a server UNIX socket to act as a NETCONF proxy.
int nc_proxy_unix_close(int fd)
Close the UNIX proxy connection to a server.
NC_PROT_VERSION
Enumeration of the supported NETCONF protocol versions.
Definition: session.h:76