FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
api.h File Reference
+ Include dependency graph for api.h:

Go to the source code of this file.

Data Structures

struct  socket_main_t
 

Macros

#define SOCKSVR_DEFAULT_PORT   32741 /* whatever */
 

Functions

void socksvr_add_pending_output (clib_file_t *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)
 
void vl_free_socket_registration_index (u32 pool_index)
 
void vl_socket_process_msg (clib_file_t *uf, struct vl_api_registration_ *rp, i8 *input_v)
 
clib_error_tvl_socket_read_ready (clib_file_t *uf)
 
void vl_socket_add_pending_output (clib_file_t *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
 
clib_error_tvl_socket_write_ready (clib_file_t *uf)
 
void vl_socket_api_send (vl_api_registration_t *rp, u8 *elem)
 
void vl_socket_api_send_with_data (vl_api_registration_t *rp, u8 *elem, u8 *data_vector)
 
void vl_socket_api_send_with_length (vl_api_registration_t *rp, u8 *elem, u32 msg_length)
 
void vl_socket_api_send_with_length_no_free (vl_api_registration_t *rp, u8 *elem, u32 msg_length)
 
u32 sockclnt_open_index (char *client_name, char *hostname, int port)
 
void sockclnt_close_index (u32 index)
 
void vl_client_msg_api_send (vl_api_registration_t *cm, u8 *elem)
 
vl_api_registration_tsockclnt_get_registration (u32 index)
 
void socksvr_set_port (u16 port)
 
void socksvr_set_bind_address (u32 bind_address)
 

Variables

socket_main_t socket_main
 

Macro Definition Documentation

#define SOCKSVR_DEFAULT_PORT   32741 /* whatever */

Definition at line 55 of file api.h.

Function Documentation

void sockclnt_close_index ( u32  index)

Definition at line 151 of file sockclnt_vlib.c.

+ Here is the call graph for this function:

vl_api_registration_t* sockclnt_get_registration ( u32  index)

Definition at line 172 of file sockclnt_vlib.c.

u32 sockclnt_open_index ( char *  client_name,
char *  hostname,
int  port 
)

Definition at line 72 of file sockclnt_vlib.c.

+ Here is the call graph for this function:

void socksvr_add_pending_output ( clib_file_t uf,
struct vl_api_registration_ cf,
u8 buffer,
uword  buffer_bytes 
)
void socksvr_set_bind_address ( u32  bind_address)
void socksvr_set_port ( u16  port)
void vl_client_msg_api_send ( vl_api_registration_t cm,
u8 elem 
)
void vl_free_socket_registration_index ( u32  pool_index)

Definition at line 119 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

void vl_socket_add_pending_output ( clib_file_t uf,
struct vl_api_registration_ rp,
u8 buffer,
uword  buffer_bytes 
)

Definition at line 269 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

void vl_socket_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 79 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_api_send_with_data ( vl_api_registration_t rp,
u8 elem,
u8 data_vector 
)
void vl_socket_api_send_with_length ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)
void vl_socket_api_send_with_length_no_free ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)
void vl_socket_process_msg ( clib_file_t uf,
struct vl_api_registration_ rp,
i8 input_v 
)
clib_error_t* vl_socket_read_ready ( clib_file_t uf)

Definition at line 157 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_socket_write_ready ( clib_file_t uf)

Definition at line 310 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

socket_main_t socket_main

Definition at line 42 of file memory_shared.c.