16 #ifndef included_vppcom_h 17 #define included_vppcom_h 25 #define INVALID_SESSION_ID (~0) 26 #define VPPCOM_VRF_DEFAULT 0 27 #define VPPCOM_CONF_ENV "VPPCOM_CONF" 28 #define VPPCOM_CONF_DEFAULT "/etc/vpp/vppcom.conf" 66 static inline const char *
90 st =
"VPPCOM_EAFNOSUPPORT";
94 st =
"VPPCOM_ECONNRESET";
98 st =
"VPPCOM_ECONNREFUSED";
102 st =
"VPPCOM_ETIMEDOUT";
106 st =
"UNKNOWN_STATE";
116 #define VPPCOM_FD_OFFSET (1 << 30) 125 uint8_t is_nonblocking);
132 double wait_for_time);
140 unsigned long *read_map,
141 unsigned long *write_map,
142 unsigned long *except_map,
double wait_for_time);
int vppcom_session_connect(uint32_t session_index, vppcom_endpt_t *server_ep)
void vppcom_app_destroy(void)
int vppcom_app_create(char *app_name)
int vppcom_session_close(uint32_t session_index)
static const char * vppcom_retval_str(int retval)
struct vppcom_endpt_t_ vppcom_endpt_t
int vppcom_session_accept(uint32_t session_index, vppcom_endpt_t *client_ep, double wait_for_time)
int vppcom_session_listen(uint32_t session_index, uint32_t q_len)
int vppcom_select(unsigned long n_bits, unsigned long *read_map, unsigned long *write_map, unsigned long *except_map, double wait_for_time)
int vppcom_session_read(uint32_t session_index, void *buf, int n)
int vppcom_session_bind(uint32_t session_index, vppcom_endpt_t *ep)
int vppcom_session_write(uint32_t session_index, void *buf, int n)
static int is_vcom_fd(int fd)
int vppcom_session_create(uint32_t vrf, uint8_t proto, uint8_t is_nonblocking)