FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
socket.c File Reference
+ Include dependency graph for socket.c:

Go to the source code of this file.

Functions

void clib_socket_tx_add_formatted (clib_socket_t *s, char *fmt,...)
 
static word find_free_port (word sock)
 
static clib_error_tsocket_config (char *config, void *addr, socklen_t *addr_len, u32 ip4_default_address)
 
static clib_error_tdefault_socket_write (clib_socket_t *s)
 
static clib_error_tdefault_socket_read (clib_socket_t *sock, int n_bytes)
 
static clib_error_tdefault_socket_close (clib_socket_t *s)
 
static void socket_init_funcs (clib_socket_t *s)
 
clib_error_tclib_socket_init (clib_socket_t *s)
 
clib_error_tclib_socket_accept (clib_socket_t *server, clib_socket_t *client)
 

Function Documentation

clib_error_t* clib_socket_accept ( clib_socket_t server,
clib_socket_t client 
)

Definition at line 379 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* clib_socket_init ( clib_socket_t s)

Definition at line 283 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void clib_socket_tx_add_formatted ( clib_socket_t s,
char *  fmt,
  ... 
)

Definition at line 56 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* default_socket_close ( clib_socket_t s)
static

Definition at line 264 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* default_socket_read ( clib_socket_t sock,
int  n_bytes 
)
static

Definition at line 228 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* default_socket_write ( clib_socket_t s)
static

Definition at line 178 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static word find_free_port ( word  sock)
static

Definition at line 66 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* socket_config ( char *  config,
void *  addr,
socklen_t *  addr_len,
u32  ip4_default_address 
)
static

Definition at line 90 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void socket_init_funcs ( clib_socket_t s)
static

Definition at line 272 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: