FD.io VPP  v18.11-rc0-18-g2a3fb1a
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
 

Functions

int echo_server_session_accept_callback (stream_session_t *s)
 
void echo_server_session_disconnect_callback (stream_session_t *s)
 
void echo_server_session_reset_callback (stream_session_t *s)
 
int echo_server_session_connected_callback (u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
 
int echo_server_add_segment_callback (u32 client_index, const ssvm_private_t *sp)
 
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 (stream_session_t *s)
 
int echo_server_rx_callback (stream_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...
 

Function Documentation

static int create_api_loopback ( vlib_main_t vm)
static

Definition at line 265 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int echo_server_add_segment_callback ( u32  client_index,
const ssvm_private_t sp 
)

Definition at line 99 of file echo_server.c.

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

Definition at line 279 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int echo_server_builtin_server_rx_callback_no_echo ( stream_session_t s)

Definition at line 134 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 367 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 411 of file echo_server.c.

+ Here is the call graph for this function:

static int echo_server_detach ( void  )
static

Definition at line 343 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int echo_server_listen ( )
static

Definition at line 356 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* echo_server_main_init ( vlib_main_t vm)

Definition at line 523 of file echo_server.c.

int echo_server_redirect_connect_callback ( u32  client_index,
void *  mp 
)

Definition at line 106 of file echo_server.c.

int echo_server_rx_callback ( stream_session_t s)

Definition at line 142 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int echo_server_session_accept_callback ( stream_session_t s)

Definition at line 58 of file echo_server.c.

+ Here is the call graph for this function:

int echo_server_session_connected_callback ( u32  app_index,
u32  api_context,
stream_session_t s,
u8  is_fail 
)

Definition at line 91 of file echo_server.c.

void echo_server_session_disconnect_callback ( stream_session_t s)

Definition at line 73 of file echo_server.c.

+ Here is the call graph for this function:

void echo_server_session_reset_callback ( stream_session_t s)

Definition at line 84 of file echo_server.c.

+ Here is the call graph for this function:

void test_bytes ( echo_server_main_t esm,
int  actual_transfer 
)

Definition at line 113 of file echo_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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:411

(constructor) VLIB_CLI_COMMAND (echo_server_create_command)

Definition at line 511 of file echo_server.c.

echo_server_main_t echo_server_main

Definition at line 55 of file echo_server.c.

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_rx_callback(stream_session_t *s)
Definition: echo_server.c:142
void echo_server_session_reset_callback(stream_session_t *s)
Definition: echo_server.c:84
int echo_server_session_connected_callback(u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
Definition: echo_server.c:91
void echo_server_session_disconnect_callback(stream_session_t *s)
Definition: echo_server.c:73
int echo_server_session_accept_callback(stream_session_t *s)
Definition: echo_server.c:58
int echo_server_add_segment_callback(u32 client_index, const ssvm_private_t *sp)
Definition: echo_server.c:99

Definition at line 254 of file echo_server.c.