Go to the source code of this file.
|
| static const char * | vppcom_retval_str (int retval) |
| |
| static int | is_vcom_fd (int fd) |
| |
| int | vppcom_app_create (char *app_name) |
| |
| void | vppcom_app_destroy (void) |
| |
| int | vppcom_session_create (uint32_t vrf, uint8_t proto, uint8_t is_nonblocking) |
| |
| int | vppcom_session_close (uint32_t session_index) |
| |
| int | vppcom_session_bind (uint32_t session_index, vppcom_endpt_t *ep) |
| |
| int | vppcom_session_listen (uint32_t session_index, uint32_t q_len) |
| |
| int | vppcom_session_accept (uint32_t session_index, vppcom_endpt_t *client_ep, double wait_for_time) |
| |
| int | vppcom_session_connect (uint32_t session_index, vppcom_endpt_t *server_ep) |
| |
| int | vppcom_session_read (uint32_t session_index, void *buf, int n) |
| |
| int | vppcom_session_write (uint32_t session_index, void *buf, int n) |
| |
| int | vppcom_select (unsigned long n_bits, unsigned long *read_map, unsigned long *write_map, unsigned long *except_map, double wait_for_time) |
| |
| #define INVALID_SESSION_ID (~0) |
| #define VPPCOM_CONF_DEFAULT "/etc/vpp/vppcom.conf" |
| #define VPPCOM_CONF_ENV "VPPCOM_CONF" |
| #define VPPCOM_FD_OFFSET (1 << 30) |
| #define VPPCOM_VRF_DEFAULT 0 |
| Enumerator |
|---|
| VPPCOM_OK |
|
| VPPCOM_EAGAIN |
|
| VPPCOM_EINVAL |
|
| VPPCOM_EBADFD |
|
| VPPCOM_EAFNOSUPPORT |
|
| VPPCOM_ECONNRESET |
|
| VPPCOM_ECONNREFUSED |
|
| VPPCOM_ETIMEDOUT |
|
Definition at line 51 of file vppcom.h.
| Enumerator |
|---|
| VPPCOM_IS_IP6 |
|
| VPPCOM_IS_IP4 |
|
Definition at line 36 of file vppcom.h.
| Enumerator |
|---|
| VPPCOM_PROTO_TCP |
|
| VPPCOM_PROTO_UDP |
|
Definition at line 30 of file vppcom.h.
| static int is_vcom_fd |
( |
int |
fd | ) |
|
|
inlinestatic |
| int vppcom_app_create |
( |
char * |
app_name | ) |
|
| void vppcom_app_destroy |
( |
void |
| ) |
|
| static const char* vppcom_retval_str |
( |
int |
retval | ) |
|
|
inlinestatic |
| 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_accept |
( |
uint32_t |
session_index, |
|
|
vppcom_endpt_t * |
client_ep, |
|
|
double |
wait_for_time |
|
) |
| |
| int vppcom_session_bind |
( |
uint32_t |
session_index, |
|
|
vppcom_endpt_t * |
ep |
|
) |
| |
| int vppcom_session_close |
( |
uint32_t |
session_index | ) |
|
| int vppcom_session_connect |
( |
uint32_t |
session_index, |
|
|
vppcom_endpt_t * |
server_ep |
|
) |
| |
| int vppcom_session_create |
( |
uint32_t |
vrf, |
|
|
uint8_t |
proto, |
|
|
uint8_t |
is_nonblocking |
|
) |
| |
| int vppcom_session_listen |
( |
uint32_t |
session_index, |
|
|
uint32_t |
q_len |
|
) |
| |
| int vppcom_session_read |
( |
uint32_t |
session_index, |
|
|
void * |
buf, |
|
|
int |
n |
|
) |
| |
| int vppcom_session_write |
( |
uint32_t |
session_index, |
|
|
void * |
buf, |
|
|
int |
n |
|
) |
| |