138 for (
i = 0;
i < 3;
i++) {
146 "Unable to send data correctly (iteration %d of 3)",
199 for (
i = 0;
i <
res->iters;
i++) {
220 printf(
"APR Test Application: sockperf\n");
228 sizeof(*results) *
nTests);
240 printf(
"Tests Complete!\n");
246 for (j = 0; j < results[
i].
iters; j++) {
const char apr_size_t len
const unsigned char * buf
apr_pool_t apr_dbd_t apr_dbd_results_t ** res
const char int apr_pool_t * pool
apr_vformatter_buff_t * c
#define apr_pool_create(newpool, parent)
#define apr_pcalloc(p, size)
static apr_status_t runTest(struct testSet *ts, struct testResult *res, apr_pool_t *pool)
static apr_sockaddr_t * sockAddr
static void reportError(const char *msg, apr_status_t rv, apr_pool_t *pool)
static apr_status_t sendRecvBuffer(apr_time_t *t, const char *buf, apr_size_t size, apr_pool_t *pool)
static apr_int16_t testPort
static void closeConnection(apr_socket_t *sock)
struct testSet testRuns[]
apr_status_t apr_socket_send(apr_socket_t *sock, const char *buf, apr_size_t *len)
apr_status_t apr_socket_recv(apr_socket_t *sock, char *buf, apr_size_t *len)
apr_status_t apr_socket_close(apr_socket_t *thesocket)
apr_status_t apr_socket_connect(apr_socket_t *sock, apr_sockaddr_t *sa)
apr_status_t apr_socket_create(apr_socket_t **new, int ofamily, int type, int protocol, apr_pool_t *cont)