Go to the source code of this file.
|
static void | sock_test_stats_accumulate (sock_test_stats_t *accum, sock_test_stats_t *incr) |
|
static void | sock_test_cfg_init (sock_test_cfg_t *cfg) |
|
static int | sock_test_cfg_verify (sock_test_cfg_t *cfg, sock_test_cfg_t *valid_cfg) |
|
static void | sock_test_buf_alloc (sock_test_cfg_t *cfg, uint8_t is_rxbuf, uint8_t **buf, uint32_t *bufsize) |
|
static void | sock_test_socket_buf_alloc (sock_test_socket_t *socket) |
|
static char * | sock_test_type_str (sock_test_t t) |
|
static void | sock_test_cfg_dump (sock_test_cfg_t *cfg, uint8_t is_client) |
|
static void | sock_test_stats_dump (char *header, sock_test_stats_t *stats, uint8_t show_rx, uint8_t show_tx, uint8_t verbose) |
|
static int | sock_test_read (int fd, uint8_t *buf, uint32_t nbytes, sock_test_stats_t *stats) |
|
static int | sock_test_write (int fd, uint8_t *buf, uint32_t nbytes, sock_test_stats_t *stats, uint32_t verbose) |
|
#define ONE_GIG (1024*1024*1024) |
#define SOCK_TEST_BANNER_STRING "============================================\n" |
#define SOCK_TEST_CFG_BUF_SIZE_MIN 128 |
#define SOCK_TEST_CFG_CTRL_MAGIC 0xfeedface |
#define SOCK_TEST_CFG_MAX_TEST_SCKTS 5 |
#define SOCK_TEST_CFG_NUM_WRITES_DEF 1000000 |
#define SOCK_TEST_CFG_TXBUF_SIZE_DEF 8192 |
#define SOCK_TEST_LOCALHOST_IPADDR "127.0.0.1" |
#define SOCK_TEST_SEPARATOR_STRING " -----------------------------\n" |
#define SOCK_TEST_SERVER_PORT 22000 |
#define SOCK_TEST_TOKEN_EXIT "#X" |
#define SOCK_TEST_TOKEN_HELP "#H" |
#define SOCK_TEST_TOKEN_NUM_TEST_SCKTS "#I:" |
#define SOCK_TEST_TOKEN_NUM_WRITES "#N:" |
#define SOCK_TEST_TOKEN_RUN_BI "#B" |
#define SOCK_TEST_TOKEN_RUN_UNI "#U" |
#define SOCK_TEST_TOKEN_RXBUF_SIZE "#R:" |
#define SOCK_TEST_TOKEN_SHOW_CFG "#C" |
#define SOCK_TEST_TOKEN_TXBUF_SIZE "#T:" |
#define SOCK_TEST_TOKEN_VERBOSE "#V" |
Enumerator |
---|
SOCK_TEST_TYPE_NONE |
|
SOCK_TEST_TYPE_ECHO |
|
SOCK_TEST_TYPE_UNI |
|
SOCK_TEST_TYPE_BI |
|
SOCK_TEST_TYPE_EXIT |
|
Definition at line 51 of file sock_test.h.
static void sock_test_buf_alloc |
( |
sock_test_cfg_t * |
cfg, |
|
|
uint8_t |
is_rxbuf, |
|
|
uint8_t ** |
buf, |
|
|
uint32_t * |
bufsize |
|
) |
| |
|
inlinestatic |
static void sock_test_cfg_dump |
( |
sock_test_cfg_t * |
cfg, |
|
|
uint8_t |
is_client |
|
) |
| |
|
inlinestatic |
static int sock_test_read |
( |
int |
fd, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
nbytes, |
|
|
sock_test_stats_t * |
stats |
|
) |
| |
|
inlinestatic |
static void sock_test_stats_dump |
( |
char * |
header, |
|
|
sock_test_stats_t * |
stats, |
|
|
uint8_t |
show_rx, |
|
|
uint8_t |
show_tx, |
|
|
uint8_t |
verbose |
|
) |
| |
|
inlinestatic |
static int sock_test_write |
( |
int |
fd, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
nbytes, |
|
|
sock_test_stats_t * |
stats, |
|
|
uint32_t |
verbose |
|
) |
| |
|
inlinestatic |