FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
echo_server.c File Reference
+ Include dependency graph for echo_server.c:

Go to the source code of this file.

Data Structures

struct  echo_server_main_t
 

Macros

#define ECHO_SERVER_DBG   (0)
 
#define DBG(_fmt, _args...)
 

Functions

int quic_echo_server_qsession_accept_callback (session_t *s)
 
int quic_echo_server_session_accept_callback (session_t *s)
 
int echo_server_session_accept_callback (session_t *s)
 
void echo_server_session_disconnect_callback (session_t *s)
 
void echo_server_session_reset_callback (session_t *s)
 
int echo_server_session_connected_callback (u32 app_index, u32 api_context, session_t *s, session_error_t err)
 
int echo_server_add_segment_callback (u32 client_index, u64 segment_handle)
 
int echo_server_redirect_connect_callback (u32 client_index, void *mp)
 
void test_bytes (echo_server_main_t *esm, int actual_transfer)
 
int echo_server_builtin_server_rx_callback_no_echo (session_t *s)
 
int echo_server_rx_callback (session_t *s)
 
static int create_api_loopback (vlib_main_t *vm)
 
static int echo_server_attach (u8 *appns_id, u64 appns_flags, u64 appns_secret)
 
static int echo_server_detach (void)
 
static int echo_server_listen ()
 
static int echo_server_create (vlib_main_t *vm, u8 *appns_id, u64 appns_flags, u64 appns_secret)
 
static clib_error_techo_server_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_techo_server_main_init (vlib_main_t *vm)
 

Variables

echo_server_main_t echo_server_main
 
static session_cb_vft_t echo_server_session_cb_vft
 
static vlib_cli_command_t echo_server_create_command
 (constructor) VLIB_CLI_COMMAND (echo_server_create_command) More...
 

Macro Definition Documentation

◆ DBG

#define DBG (   _fmt,
  _args... 
)
Value:
clib_warning (_fmt, ##_args)
#define ECHO_SERVER_DBG
Definition: echo_server.c:22

Definition at line 23 of file echo_server.c.

◆ ECHO_SERVER_DBG

#define ECHO_SERVER_DBG   (0)

Definition at line 22 of file echo_server.c.

Function Documentation

◆ create_api_loopback()

static int create_api_loopback ( vlib_main_t vm)
static

Definition at line 306 of file echo_server.c.

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

◆ echo_server_add_segment_callback()

int echo_server_add_segment_callback ( u32  client_index,
u64  segment_handle 
)

Definition at line 135 of file echo_server.c.

◆ echo_server_attach()

static int echo_server_attach ( u8 appns_id,
u64  appns_flags,
u64  appns_secret 
)
static

Definition at line 320 of file echo_server.c.

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

◆ echo_server_builtin_server_rx_callback_no_echo()

int echo_server_builtin_server_rx_callback_no_echo ( session_t s)

Definition at line 170 of file echo_server.c.

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

◆ echo_server_create()

static int echo_server_create ( vlib_main_t vm,
u8 appns_id,
u64  appns_flags,
u64  appns_secret 
)
static

Definition at line 415 of file echo_server.c.

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

◆ echo_server_create_command_fn()

static clib_error_t* echo_server_create_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 459 of file echo_server.c.

+ Here is the call graph for this function:

◆ echo_server_detach()

static int echo_server_detach ( void  )
static

Definition at line 388 of file echo_server.c.

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

◆ echo_server_listen()

static int echo_server_listen ( )
static

Definition at line 401 of file echo_server.c.

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

◆ echo_server_main_init()

clib_error_t* echo_server_main_init ( vlib_main_t vm)

Definition at line 574 of file echo_server.c.

◆ echo_server_redirect_connect_callback()

int echo_server_redirect_connect_callback ( u32  client_index,
void *  mp 
)

Definition at line 142 of file echo_server.c.

◆ echo_server_rx_callback()

int echo_server_rx_callback ( session_t s)

Definition at line 178 of file echo_server.c.

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

◆ echo_server_session_accept_callback()

int echo_server_session_accept_callback ( session_t s)

Definition at line 91 of file echo_server.c.

+ Here is the call graph for this function:

◆ echo_server_session_connected_callback()

int echo_server_session_connected_callback ( u32  app_index,
u32  api_context,
session_t s,
session_error_t  err 
)

Definition at line 127 of file echo_server.c.

◆ echo_server_session_disconnect_callback()

void echo_server_session_disconnect_callback ( session_t s)

Definition at line 105 of file echo_server.c.

+ Here is the call graph for this function:

◆ echo_server_session_reset_callback()

void echo_server_session_reset_callback ( session_t s)

Definition at line 116 of file echo_server.c.

+ Here is the call graph for this function:

◆ quic_echo_server_qsession_accept_callback()

int quic_echo_server_qsession_accept_callback ( session_t s)

Definition at line 66 of file echo_server.c.

+ Here is the caller graph for this function:

◆ quic_echo_server_session_accept_callback()

int quic_echo_server_session_accept_callback ( session_t s)

Definition at line 73 of file echo_server.c.

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

◆ test_bytes()

void test_bytes ( echo_server_main_t esm,
int  actual_transfer 
)

Definition at line 149 of file echo_server.c.

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

Variable Documentation

◆ echo_server_create_command

vlib_cli_command_t echo_server_create_command
static
Initial value:
=
{
.path = "test echo server",
.short_help = "test echo server proto <proto> [no echo][fifo-size <mbytes>]"
"[rcv-buf-size <bytes>][prealloc-fifos <count>]"
"[private-segment-count <count>][private-segment-size <bytes[m|g]>]"
"[uri <tcp://ip/port>]",
}
static clib_error_t * echo_server_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: echo_server.c:459

(constructor) VLIB_CLI_COMMAND (echo_server_create_command)

Definition at line 562 of file echo_server.c.

◆ echo_server_main

echo_server_main_t echo_server_main

Definition at line 63 of file echo_server.c.

◆ echo_server_session_cb_vft

session_cb_vft_t echo_server_session_cb_vft
static
Initial value:
= {
.session_accept_callback = echo_server_session_accept_callback,
.session_disconnect_callback = echo_server_session_disconnect_callback,
.session_connected_callback = echo_server_session_connected_callback,
.add_segment_callback = echo_server_add_segment_callback,
.builtin_app_rx_callback = echo_server_rx_callback,
.session_reset_callback = echo_server_session_reset_callback
}
int echo_server_session_accept_callback(session_t *s)
Definition: echo_server.c:91
void echo_server_session_disconnect_callback(session_t *s)
Definition: echo_server.c:105
int echo_server_session_connected_callback(u32 app_index, u32 api_context, session_t *s, session_error_t err)
Definition: echo_server.c:127
void echo_server_session_reset_callback(session_t *s)
Definition: echo_server.c:116
int echo_server_rx_callback(session_t *s)
Definition: echo_server.c:178
int echo_server_add_segment_callback(u32 client_index, u64 segment_handle)
Definition: echo_server.c:135

Definition at line 295 of file echo_server.c.