Go to the source code of this file.
◆ SOCK_TEST_AF_UNIX_ACCEPT_DATA
#define SOCK_TEST_AF_UNIX_ACCEPT_DATA 0xaf0000af |
◆ SOCK_TEST_AF_UNIX_FD_MASK
#define SOCK_TEST_AF_UNIX_FD_MASK 0x00af0000 |
◆ SOCK_TEST_AF_UNIX_FILENAME
#define SOCK_TEST_AF_UNIX_FILENAME "/tmp/ldp_server_af_unix_socket" |
◆ SOCK_TEST_BANNER_STRING
#define SOCK_TEST_BANNER_STRING "============================================\n" |
◆ SOCK_TEST_MIXED_EPOLL_DATA
#define SOCK_TEST_MIXED_EPOLL_DATA "Hello, world! (over an AF_UNIX socket)" |
◆ stabrt
#define stabrt |
( |
|
_fmt, |
|
|
|
_args... |
|
) |
| |
Value:{ \
printf ("\nERROR: " _fmt "\n", ##_args); \
exit (1); \
}
Definition at line 41 of file sock_test.h.
◆ sterr
#define sterr |
( |
|
_fn, |
|
|
|
_rv |
|
) |
| |
Value:{ \
errno = -_rv; \
printf ("\nERROR: " _fn " failed (errno = %d)!\n", -_rv); \
}
Definition at line 36 of file sock_test.h.
◆ stfail
Value:{ \
perror ("ERROR when calling " _fn); \
printf ("\nERROR: " _fn " failed (errno = %d)!\n", errno); \
exit (1); \
}
Definition at line 46 of file sock_test.h.
◆ stinf
#define stinf |
( |
|
_fmt, |
|
|
|
_args... |
|
) |
| printf ("st: " _fmt "\n", ##_args) |
◆ stwrn
#define stwrn |
( |
|
_fmt, |
|
|
|
_args... |
|
) |
| printf ("WARNING: " _fmt "\n", ##_args) |
◆ sock_test_read()
static int sock_test_read |
( |
int |
fd, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
nbytes, |
|
|
vcl_test_stats_t * |
stats |
|
) |
| |
|
inlinestatic |
◆ sock_test_write()
static int sock_test_write |
( |
int |
fd, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
nbytes, |
|
|
vcl_test_stats_t * |
stats, |
|
|
uint32_t |
verbose |
|
) |
| |
|
inlinestatic |