FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
socket_client.c File Reference
+ Include dependency graph for socket_client.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   clib_warning (__VA_ARGS__)
 
#define vl_printfun
 
#define foreach_sock_client_api_msg
 

Functions

u32 vl (void *p)
 
int vl_socket_client_read (int wait)
 
int vl_socket_client_write (void)
 
void * vl_socket_client_msg_alloc (int nbytes)
 
void vl_socket_client_disconnect (void)
 
void vl_socket_client_enable_disable (int enable)
 
clib_error_tvl_sock_api_recv_fd_msg (int socket_fd, int *my_fd, u32 wait)
 
static void vl_api_sock_init_shm_reply_t_handler (vl_api_sock_init_shm_reply_t *mp)
 
static void vl_api_sockclnt_create_reply_t_handler (vl_api_sockclnt_create_reply_t *mp)
 
static void noop_handler (void *notused)
 
void vl_sock_client_install_message_handlers (void)
 
int vl_socket_client_connect (char *socket_path, char *client_name, u32 socket_buffer_size)
 
int vl_socket_client_init_shm (vl_api_shm_elem_config_t *config)
 
clib_error_tvl_socket_client_recv_fd_msg (int *fd_to_recv, u32 wait)
 

Variables

socket_client_main_t socket_client_main
 

Macro Definition Documentation

#define foreach_sock_client_api_msg
Value:
_(SOCKCLNT_CREATE_REPLY, sockclnt_create_reply) \
_(SOCK_INIT_SHM_REPLY, sock_init_shm_reply) \

Definition at line 300 of file socket_client.c.

#define vl_endianfun   /* define message structures */

Definition at line 34 of file socket_client.c.

#define vl_print (   handle,
  ... 
)    clib_warning (__VA_ARGS__)

Definition at line 39 of file socket_client.c.

#define vl_printfun

Definition at line 40 of file socket_client.c.

#define vl_typedefs   /* define message structures */

Definition at line 30 of file socket_client.c.

Function Documentation

static void noop_handler ( void *  notused)
static

Definition at line 305 of file socket_client.c.

u32 vl ( void *  p)

Definition at line 50 of file socket_client.c.

static void vl_api_sock_init_shm_reply_t_handler ( vl_api_sock_init_shm_reply_t mp)
static

Definition at line 243 of file socket_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_sockclnt_create_reply_t_handler ( vl_api_sockclnt_create_reply_t mp)
static

Definition at line 293 of file socket_client.c.

clib_error_t* vl_sock_api_recv_fd_msg ( int  socket_fd,
int *  my_fd,
u32  wait 
)

Definition at line 180 of file socket_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_sock_client_install_message_handlers ( void  )

Definition at line 310 of file socket_client.c.

+ Here is the caller graph for this function:

int vl_socket_client_connect ( char *  socket_path,
char *  client_name,
u32  socket_buffer_size 
)

Definition at line 325 of file socket_client.c.

+ Here is the call graph for this function:

void vl_socket_client_disconnect ( void  )

Definition at line 158 of file socket_client.c.

+ Here is the call graph for this function:

void vl_socket_client_enable_disable ( int  enable)

Definition at line 173 of file socket_client.c.

+ Here is the caller graph for this function:

int vl_socket_client_init_shm ( vl_api_shm_elem_config_t config)

Definition at line 379 of file socket_client.c.

+ Here is the call graph for this function:

void* vl_socket_client_msg_alloc ( int  nbytes)

Definition at line 151 of file socket_client.c.

+ Here is the caller graph for this function:

int vl_socket_client_read ( int  wait)

Definition at line 56 of file socket_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_socket_client_recv_fd_msg ( int *  fd_to_recv,
u32  wait 
)

Definition at line 412 of file socket_client.c.

+ Here is the call graph for this function:

int vl_socket_client_write ( void  )

Definition at line 122 of file socket_client.c.

+ Here is the caller graph for this function:

Variable Documentation

socket_client_main_t socket_client_main

Definition at line 44 of file socket_client.c.