FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
sock_test_server.c File Reference
+ Include dependency graph for sock_test_server.c:

Go to the source code of this file.

Data Structures

struct  sock_server_conn_t
 
struct  sock_server_cfg_t
 
struct  sock_server_main_t
 

Macros

#define SOCK_SERVER_USE_EPOLL   1
 
#define VPPCOM_SESSION_ATTR_UNIT_TEST   0
 
#define SOCK_SERVER_MAX_TEST_CONN   10
 
#define SOCK_SERVER_MAX_EPOLL_EVENTS   10
 

Functions

static void conn_pool_expand (size_t expand_size)
 
static sock_server_conn_tconn_pool_alloc (void)
 
static void conn_pool_free (sock_server_conn_t *conn)
 
static void sync_config_and_reply (sock_server_conn_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void stream_test_server_start_stop (sock_server_conn_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void stream_test_server (sock_server_conn_t *conn, int rx_bytes)
 
static void af_unix_echo (void)
 
static void new_client (void)
 
void print_usage_and_exit (void)
 
int main (int argc, char **argv)
 

Variables

sock_server_main_t sock_server_main
 

Macro Definition Documentation

◆ SOCK_SERVER_MAX_EPOLL_EVENTS

#define SOCK_SERVER_MAX_EPOLL_EVENTS   10

Definition at line 70 of file sock_test_server.c.

◆ SOCK_SERVER_MAX_TEST_CONN

#define SOCK_SERVER_MAX_TEST_CONN   10

Definition at line 69 of file sock_test_server.c.

◆ SOCK_SERVER_USE_EPOLL

#define SOCK_SERVER_USE_EPOLL   1

Definition at line 29 of file sock_test_server.c.

◆ VPPCOM_SESSION_ATTR_UNIT_TEST

#define VPPCOM_SESSION_ATTR_UNIT_TEST   0

Definition at line 30 of file sock_test_server.c.

Function Documentation

◆ af_unix_echo()

static void af_unix_echo ( void  )
inlinestatic

Definition at line 306 of file sock_test_server.c.

+ Here is the caller graph for this function:

◆ conn_pool_alloc()

static sock_server_conn_t* conn_pool_alloc ( void  )
inlinestatic

Definition at line 166 of file sock_test_server.c.

+ Here is the caller graph for this function:

◆ conn_pool_expand()

static void conn_pool_expand ( size_t  expand_size)
inlinestatic

Definition at line 133 of file sock_test_server.c.

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

◆ conn_pool_free()

static void conn_pool_free ( sock_server_conn_t conn)
inlinestatic

Definition at line 187 of file sock_test_server.c.

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 458 of file sock_test_server.c.

+ Here is the call graph for this function:

◆ new_client()

static void new_client ( void  )
inlinestatic

Definition at line 374 of file sock_test_server.c.

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

◆ print_usage_and_exit()

void print_usage_and_exit ( void  )

Definition at line 446 of file sock_test_server.c.

+ Here is the caller graph for this function:

◆ stream_test_server()

static void stream_test_server ( sock_server_conn_t conn,
int  rx_bytes 
)
inlinestatic

Definition at line 289 of file sock_test_server.c.

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

◆ stream_test_server_start_stop()

static void stream_test_server_start_stop ( sock_server_conn_t conn,
vcl_test_cfg_t rx_cfg 
)
static

Definition at line 217 of file sock_test_server.c.

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

◆ sync_config_and_reply()

static void sync_config_and_reply ( sock_server_conn_t conn,
vcl_test_cfg_t rx_cfg 
)
inlinestatic

Definition at line 200 of file sock_test_server.c.

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

Variable Documentation

◆ sock_server_main

sock_server_main_t sock_server_main

Definition at line 96 of file sock_test_server.c.