Apache HTTPD
Macros | Functions | Variables
testsock.c File Reference
#include "testutil.h"
#include "testsock.h"
#include "apr_thread_proc.h"
#include "apr_network_io.h"
#include "apr_errno.h"
#include "apr_general.h"
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_poll.h"
#include "apr_want.h"

Go to the source code of this file.

Macros

#define APR_WANT_BYTEFUNC
 
#define UNIX_SOCKET_NAME   "/tmp/apr-socket"
 
#define IPV4_SOCKET_NAME   "127.0.0.1"
 
#define TEST_ZONE_ADDR   "fe80::1"
 

Functions

static void launch_child (abts_case *tc, apr_proc_t *proc, const char *arg1, apr_pool_t *p)
 
static int wait_child (abts_case *tc, apr_proc_t *proc)
 
static void test_addr_info (abts_case *tc, void *data)
 
static void test_addr_copy (abts_case *tc, void *data)
 
static void test_serv_by_name (abts_case *tc, void *data)
 
static apr_socket_tsetup_socket (abts_case *tc)
 
static void test_create_bind_listen (abts_case *tc, void *data)
 
static void test_send (abts_case *tc, void *data)
 
static void test_recv (abts_case *tc, void *data)
 
static void test_atreadeof (abts_case *tc, void *data)
 
static void test_timeout (abts_case *tc, void *data)
 
static void test_print_addr (abts_case *tc, void *data)
 
static void test_get_addr (abts_case *tc, void *data)
 
static void test_nonblock_inheritance (abts_case *tc, void *data)
 
static void test_freebind (abts_case *tc, void *data)
 
static void test_zone (abts_case *tc, void *data)
 
abts_suitetestsock (abts_suite *suite)
 

Variables

static charsocket_name = NULL
 
static int socket_type = AF_INET
 

Macro Definition Documentation

◆ APR_WANT_BYTEFUNC

#define APR_WANT_BYTEFUNC

Definition at line 26 of file testsock.c.

◆ IPV4_SOCKET_NAME

#define IPV4_SOCKET_NAME   "127.0.0.1"

Definition at line 30 of file testsock.c.

◆ TEST_ZONE_ADDR

#define TEST_ZONE_ADDR   "fe80::1"

Definition at line 580 of file testsock.c.

◆ UNIX_SOCKET_NAME

#define UNIX_SOCKET_NAME   "/tmp/apr-socket"

Definition at line 29 of file testsock.c.

Function Documentation

◆ launch_child()

static void launch_child ( abts_case tc,
apr_proc_t proc,
const char arg1,
apr_pool_t p 
)
static

Definition at line 34 of file testsock.c.

◆ setup_socket()

static apr_socket_t * setup_socket ( abts_case tc)
static

< TCP

< Reuse addresses

Definition at line 170 of file testsock.c.

◆ test_addr_copy()

static void test_addr_copy ( abts_case tc,
void *  data 
)
static

Definition at line 100 of file testsock.c.

◆ test_addr_info()

static void test_addr_info ( abts_case tc,
void *  data 
)
static

Definition at line 74 of file testsock.c.

◆ test_atreadeof()

static void test_atreadeof ( abts_case tc,
void *  data 
)
static

Definition at line 272 of file testsock.c.

◆ test_create_bind_listen()

static void test_create_bind_listen ( abts_case tc,
void *  data 
)
static

Definition at line 195 of file testsock.c.

◆ test_freebind()

static void test_freebind ( abts_case tc,
void *  data 
)
static

Definition at line 547 of file testsock.c.

◆ test_get_addr()

static void test_get_addr ( abts_case tc,
void *  data 
)
static

< TCP

< Can write without blocking

< Hangup occurred

Definition at line 401 of file testsock.c.

◆ test_nonblock_inheritance()

static void test_nonblock_inheritance ( abts_case tc,
void *  data 
)
static

< Non-blocking IO

< Non-blocking IO

Definition at line 504 of file testsock.c.

◆ test_print_addr()

static void test_print_addr ( abts_case tc,
void *  data 
)
static

Definition at line 365 of file testsock.c.

◆ test_recv()

static void test_recv ( abts_case tc,
void *  data 
)
static

< TCP

Definition at line 238 of file testsock.c.

◆ test_send()

static void test_send ( abts_case tc,
void *  data 
)
static

< TCP

Definition at line 206 of file testsock.c.

◆ test_serv_by_name()

static void test_serv_by_name ( abts_case tc,
void *  data 
)
static

Definition at line 150 of file testsock.c.

◆ test_timeout()

static void test_timeout ( abts_case tc,
void *  data 
)
static

< TCP

Definition at line 333 of file testsock.c.

◆ test_zone()

static void test_zone ( abts_case tc,
void *  data 
)
static

Definition at line 592 of file testsock.c.

◆ testsock()

abts_suite * testsock ( abts_suite suite)

Definition at line 674 of file testsock.c.

◆ wait_child()

static int wait_child ( abts_case tc,
apr_proc_t proc 
)
static

Definition at line 62 of file testsock.c.

Variable Documentation

◆ socket_name

char* socket_name = NULL
static

Definition at line 31 of file testsock.c.

◆ socket_type

int socket_type = AF_INET
static

Definition at line 32 of file testsock.c.