#include "testutil.hpp"
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | pre_allocate_sock_fun_t) (void *, char *) |
Functions | |
int | main () |
void | pre_allocate_sock_ipc (void *sb_, char *my_endpoint_) |
SETUP_TEARDOWN_TESTCONTEXT void | pre_allocate_sock_tcp (void *socket_, char *my_endpoint_) |
void | setup_socket_pair (pre_allocate_sock_fun_t pre_allocate_sock_fun_, int bind_socket_type_, int connect_socket_type_, void **out_sb_, void **out_sc_) |
void | test_client_server (pre_allocate_sock_fun_t pre_allocate_sock_fun_) |
void | test_client_server_ipc () |
void | test_client_server_tcp () |
void | test_pair (pre_allocate_sock_fun_t pre_allocate_sock_fun_) |
void | test_pair_ipc () |
void | test_pair_tcp () |
void | test_req_rep (pre_allocate_sock_fun_t pre_allocate_sock_fun_) |
void | test_req_rep_ipc () |
void | test_req_rep_tcp () |
void | test_socket_pair (pre_allocate_sock_fun_t pre_allocate_sock_fun_, int bind_socket_type_, int connect_socket_type_) |
Variables | |
char | ipc_endpoint [MAX_SOCKET_STRING] = "" |
Definition at line 21 of file test_use_fd.cpp.
int main | ( | ) |
Definition at line 171 of file test_use_fd.cpp.
Definition at line 140 of file test_use_fd.cpp.
SETUP_TEARDOWN_TESTCONTEXT void pre_allocate_sock_tcp | ( | void * | socket_, |
char * | my_endpoint_ | ||
) |
Definition at line 14 of file test_use_fd.cpp.
void setup_socket_pair | ( | pre_allocate_sock_fun_t | pre_allocate_sock_fun_, |
int | bind_socket_type_, | ||
int | connect_socket_type_, | ||
void ** | out_sb_, | ||
void ** | out_sc_ | ||
) |
Definition at line 23 of file test_use_fd.cpp.
void test_client_server | ( | pre_allocate_sock_fun_t | pre_allocate_sock_fun_ | ) |
Definition at line 64 of file test_use_fd.cpp.
void test_client_server_ipc | ( | ) |
Definition at line 162 of file test_use_fd.cpp.
void test_client_server_tcp | ( | ) |
Definition at line 131 of file test_use_fd.cpp.
void test_pair | ( | pre_allocate_sock_fun_t | pre_allocate_sock_fun_ | ) |
Definition at line 59 of file test_use_fd.cpp.
void test_pair_ipc | ( | ) |
Definition at line 155 of file test_use_fd.cpp.
void test_pair_tcp | ( | ) |
Definition at line 126 of file test_use_fd.cpp.
void test_req_rep | ( | pre_allocate_sock_fun_t | pre_allocate_sock_fun_ | ) |
Definition at line 54 of file test_use_fd.cpp.
void test_req_rep_ipc | ( | ) |
Definition at line 148 of file test_use_fd.cpp.
void test_req_rep_tcp | ( | ) |
Definition at line 121 of file test_use_fd.cpp.
void test_socket_pair | ( | pre_allocate_sock_fun_t | pre_allocate_sock_fun_, |
int | bind_socket_type_, | ||
int | connect_socket_type_ | ||
) |
Definition at line 40 of file test_use_fd.cpp.
char ipc_endpoint[MAX_SOCKET_STRING] = "" |
Definition at line 138 of file test_use_fd.cpp.