FD.io VPP
v16.06
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | SOCKET_IS_SERVER (1 << 0) |
#define | SOCKET_IS_CLIENT (0 << 0) |
#define | SOCKET_NON_BLOCKING_CONNECT (1 << 1) |
#define | SOCKET_RX_END_OF_FILE (1 << 2) |
Typedefs | |
typedef struct _socket_t | clib_socket_t |
Functions | |
clib_error_t * | clib_socket_init (clib_socket_t *socket) |
clib_error_t * | clib_socket_accept (clib_socket_t *server, clib_socket_t *client) |
always_inline uword | clib_socket_is_server (clib_socket_t *sock) |
always_inline uword | clib_socket_is_client (clib_socket_t *s) |
always_inline int | clib_socket_rx_end_of_file (clib_socket_t *s) |
always_inline void * | clib_socket_tx_add (clib_socket_t *s, int n_bytes) |
always_inline void | clib_socket_tx_add_va_formatted (clib_socket_t *s, char *fmt, va_list *va) |
always_inline clib_error_t * | clib_socket_tx (clib_socket_t *s) |
always_inline clib_error_t * | clib_socket_rx (clib_socket_t *s, int n_bytes) |
always_inline void | clib_socket_free (clib_socket_t *s) |
always_inline clib_error_t * | clib_socket_close (clib_socket_t *sock) |
void | clib_socket_tx_add_formatted (clib_socket_t *s, char *fmt,...) |
typedef struct _socket_t clib_socket_t |
clib_error_t* clib_socket_accept | ( | clib_socket_t * | server, |
clib_socket_t * | client | ||
) |
always_inline clib_error_t* clib_socket_close | ( | clib_socket_t * | sock | ) |
always_inline void clib_socket_free | ( | clib_socket_t * | s | ) |
clib_error_t* clib_socket_init | ( | clib_socket_t * | socket | ) |
always_inline uword clib_socket_is_client | ( | clib_socket_t * | s | ) |
always_inline uword clib_socket_is_server | ( | clib_socket_t * | sock | ) |
always_inline clib_error_t* clib_socket_rx | ( | clib_socket_t * | s, |
int | n_bytes | ||
) |
always_inline int clib_socket_rx_end_of_file | ( | clib_socket_t * | s | ) |
always_inline clib_error_t* clib_socket_tx | ( | clib_socket_t * | s | ) |
always_inline void* clib_socket_tx_add | ( | clib_socket_t * | s, |
int | n_bytes | ||
) |
void clib_socket_tx_add_formatted | ( | clib_socket_t * | s, |
char * | fmt, | ||
... | |||
) |
always_inline void clib_socket_tx_add_va_formatted | ( | clib_socket_t * | s, |
char * | fmt, | ||
va_list * | va | ||
) |