libnetconf2 4.4.1
NETCONF server and client library in C.
Loading...
Searching...
No Matches
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
24extern "C" {
25#endif
26
42int nc_proxy_unix_connect(const char *address, const char *username);
43
60int nc_proxy_read_msg(int fd, NC_PROT_VERSION version, int timeout_ms, char **buf, uint32_t *buf_len);
61
77int nc_proxy_write_msg(int fd, NC_PROT_VERSION version, const char *buf, uint32_t buf_len);
78
87
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* NC_PROXY_UNIX_H_ */
int nc_proxy_unix_close(int fd)
Close the UNIX proxy connection to a server.
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.
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.
libnetconf2 session manipulation
NC_PROT_VERSION
Enumeration of the supported NETCONF protocol versions.
Definition session.h:66