FD.io VPP  v18.01.2-1-g9b554f3
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 clib_error_tdefault_socket_sendmsg (clib_socket_t *s, void *msg, int msglen, int fds[], int num_fds)
 
static clib_error_tdefault_socket_recvmsg (clib_socket_t *s, void *msg, int msglen, int fds[], int num_fds)
 
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 514 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 376 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 58 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 268 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 231 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_recvmsg ( clib_socket_t s,
void *  msg,
int  msglen,
int  fds[],
int  num_fds 
)
static

Definition at line 309 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* default_socket_sendmsg ( clib_socket_t s,
void *  msg,
int  msglen,
int  fds[],
int  num_fds 
)
static

Definition at line 276 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* default_socket_write ( clib_socket_t s)
static

Definition at line 180 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 68 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 92 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 361 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: