FD.io VPP  v21.01.1
Vector Packet Processing
socket_client.h File Reference
+ Include dependency graph for socket_client.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  socket_client_main_t
 

Macros

#define SOCKET_CLIENT_DEFAULT_BUFFER_SIZE   4096
 

Functions

int vl_socket_client_connect (char *socket_path, char *client_name, u32 socket_buffer_size)
 
void vl_socket_client_disconnect (void)
 
void vl_socket_client_enable_disable (int enable)
 
int vl_socket_client_read (int wait)
 
int vl_socket_client_write (void)
 
void * vl_socket_client_msg_alloc (int nbytes)
 
int vl_socket_client_init_shm (vl_api_shm_elem_config_t *config, int want_pthread)
 
clib_error_tvl_socket_client_recv_fd_msg (int fds[], int n_fds, u32 wait)
 
int vl_socket_client_connect2 (socket_client_main_t *scm, char *socket_path, char *client_name, u32 socket_buffer_size)
 
void vl_socket_client_disconnect2 (socket_client_main_t *scm)
 
void vl_socket_client_enable_disable2 (socket_client_main_t *scm, int enable)
 
int vl_socket_client_read2 (socket_client_main_t *scm, int wait)
 
int vl_socket_client_write2 (socket_client_main_t *scm)
 
void * vl_socket_client_msg_alloc2 (socket_client_main_t *scm, int nbytes)
 
int vl_socket_client_init_shm2 (socket_client_main_t *scm, vl_api_shm_elem_config_t *config, int want_pthread)
 
clib_error_tvl_socket_client_recv_fd_msg2 (socket_client_main_t *scm, int fds[], int n_fds, u32 wait)
 

Variables

socket_client_main_t socket_client_main
 

Macro Definition Documentation

◆ SOCKET_CLIENT_DEFAULT_BUFFER_SIZE

#define SOCKET_CLIENT_DEFAULT_BUFFER_SIZE   4096

Definition at line 49 of file socket_client.h.

Function Documentation

◆ vl_socket_client_connect()

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

Definition at line 501 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_connect2()

int vl_socket_client_connect2 ( socket_client_main_t scm,
char *  socket_path,
char *  client_name,
u32  socket_buffer_size 
)

Definition at line 509 of file socket_client.c.

+ Here is the call graph for this function:

◆ vl_socket_client_disconnect()

void vl_socket_client_disconnect ( void  )

Definition at line 246 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_disconnect2()

void vl_socket_client_disconnect2 ( socket_client_main_t scm)

Definition at line 233 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_enable_disable()

void vl_socket_client_enable_disable ( int  enable)

Definition at line 258 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_enable_disable2()

void vl_socket_client_enable_disable2 ( socket_client_main_t scm,
int  enable 
)

Definition at line 252 of file socket_client.c.

+ Here is the caller graph for this function:

◆ vl_socket_client_init_shm()

int vl_socket_client_init_shm ( vl_api_shm_elem_config_t config,
int  want_pthread 
)

Definition at line 560 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_init_shm2()

int vl_socket_client_init_shm2 ( socket_client_main_t scm,
vl_api_shm_elem_config_t config,
int  want_pthread 
)

Definition at line 568 of file socket_client.c.

+ Here is the call graph for this function:

◆ vl_socket_client_msg_alloc()

void* vl_socket_client_msg_alloc ( int  nbytes)

Definition at line 227 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_msg_alloc2()

void* vl_socket_client_msg_alloc2 ( socket_client_main_t scm,
int  nbytes 
)

Definition at line 220 of file socket_client.c.

+ Here is the caller graph for this function:

◆ vl_socket_client_read()

int vl_socket_client_read ( int  wait)

Definition at line 156 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_read2()

int vl_socket_client_read2 ( socket_client_main_t scm,
int  wait 
)

Definition at line 162 of file socket_client.c.

+ Here is the call graph for this function:

◆ vl_socket_client_recv_fd_msg()

clib_error_t* vl_socket_client_recv_fd_msg ( int  fds[],
int  n_fds,
u32  wait 
)

Definition at line 592 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_recv_fd_msg2()

clib_error_t* vl_socket_client_recv_fd_msg2 ( socket_client_main_t scm,
int  fds[],
int  n_fds,
u32  wait 
)

Definition at line 583 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_write()

int vl_socket_client_write ( void  )

Definition at line 202 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_client_write2()

int vl_socket_client_write2 ( socket_client_main_t scm)

Definition at line 208 of file socket_client.c.

+ Here is the call graph for this function:

Variable Documentation

◆ socket_client_main

socket_client_main_t socket_client_main

Definition at line 44 of file socket_client.c.