FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
api.h File Reference
+ Include dependency graph for api.h:
+ This graph shows which files directly or indirectly include this file:

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 (struct unix_file *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 (struct unix_file *uf, struct vl_api_registration_ *rp, i8 *input_v)
 
clib_error_tvl_socket_read_ready (struct unix_file *uf)
 
void vl_socket_add_pending_output (struct unix_file *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
 
clib_error_tvl_socket_write_ready (struct unix_file *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 ( struct unix_file uf,
struct vl_api_registration_ cf,
u8 buffer,
uword  buffer_bytes 
)
void socksvr_set_bind_address ( u32  bind_address)

Definition at line 687 of file socksvr_vlib.c.

void socksvr_set_port ( u16  port)

Definition at line 680 of file socksvr_vlib.c.

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 215 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

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

Definition at line 355 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 82 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_socket_api_send_with_data ( vl_api_registration_t rp,
u8 elem,
u8 data_vector 
)

Definition at line 116 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_api_send_with_length ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)

Definition at line 199 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_api_send_with_length_no_free ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)

Definition at line 207 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_process_msg ( struct unix_file uf,
struct vl_api_registration_ rp,
i8 input_v 
)
clib_error_t* vl_socket_read_ready ( struct unix_file uf)

Definition at line 246 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 ( struct unix_file uf)

Definition at line 388 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 49 of file api.h.