FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
sock_test_server.c File Reference
+ Include dependency graph for sock_test_server.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sock_server_conn_t
 
struct  sock_server_main_t
 

Macros

#define SOCK_SERVER_MAX_TEST_CONN   10
 

Functions

static int get_nfds (void)
 
static void conn_fdset_set (sock_server_conn_t *conn, fd_set *fdset)
 
static void conn_fdset_clr (sock_server_conn_t *conn, fd_set *fdset)
 
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, sock_test_cfg_t *rx_cfg)
 
static void stream_test_server_start_stop (sock_server_conn_t *conn, sock_test_cfg_t *rx_cfg)
 
static void stream_test_server (sock_server_conn_t *conn, int rx_bytes)
 
static void new_client (void)
 
int main (int argc, char **argv)
 

Variables

sock_server_main_t sock_server_main
 

Macro Definition Documentation

#define SOCK_SERVER_MAX_TEST_CONN   10

Definition at line 40 of file sock_test_server.c.

Function Documentation

static void conn_fdset_clr ( sock_server_conn_t conn,
fd_set *  fdset 
)
inlinestatic

Definition at line 79 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void conn_fdset_set ( sock_server_conn_t conn,
fd_set *  fdset 
)
inlinestatic

Definition at line 70 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static sock_server_conn_t* conn_pool_alloc ( void  )
inlinestatic

Definition at line 121 of file sock_test_server.c.

+ Here is the caller graph for this function:

static void conn_pool_expand ( size_t  expand_size)
inlinestatic

Definition at line 88 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void conn_pool_free ( sock_server_conn_t conn)
inlinestatic

Definition at line 142 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int get_nfds ( void  )
inlinestatic

Definition at line 56 of file sock_test_server.c.

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 296 of file sock_test_server.c.

+ Here is the call graph for this function:

static void new_client ( void  )
inlinestatic

Definition at line 258 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void stream_test_server ( sock_server_conn_t conn,
int  rx_bytes 
)
inlinestatic

Definition at line 242 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void stream_test_server_start_stop ( sock_server_conn_t conn,
sock_test_cfg_t rx_cfg 
)
static

Definition at line 170 of file sock_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void sync_config_and_reply ( sock_server_conn_t conn,
sock_test_cfg_t rx_cfg 
)
inlinestatic

Definition at line 153 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_t sock_server_main

Definition at line 53 of file sock_test_server.c.