Typedefs | Functions | Variables
test_use_fd.cpp File Reference
#include "testutil.hpp"
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for test_use_fd.cpp:

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] = ""
 

Typedef Documentation

◆ pre_allocate_sock_fun_t

typedef void(* pre_allocate_sock_fun_t) (void *, char *)

Definition at line 21 of file test_use_fd.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 171 of file test_use_fd.cpp.

◆ pre_allocate_sock_ipc()

void pre_allocate_sock_ipc ( void sb_,
char *  my_endpoint_ 
)

Definition at line 140 of file test_use_fd.cpp.

◆ pre_allocate_sock_tcp()

SETUP_TEARDOWN_TESTCONTEXT void pre_allocate_sock_tcp ( void socket_,
char *  my_endpoint_ 
)

Definition at line 14 of file test_use_fd.cpp.

◆ setup_socket_pair()

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.

◆ test_client_server()

void test_client_server ( pre_allocate_sock_fun_t  pre_allocate_sock_fun_)

Definition at line 64 of file test_use_fd.cpp.

◆ test_client_server_ipc()

void test_client_server_ipc ( )

Definition at line 162 of file test_use_fd.cpp.

◆ test_client_server_tcp()

void test_client_server_tcp ( )

Definition at line 131 of file test_use_fd.cpp.

◆ test_pair()

void test_pair ( pre_allocate_sock_fun_t  pre_allocate_sock_fun_)

Definition at line 59 of file test_use_fd.cpp.

◆ test_pair_ipc()

void test_pair_ipc ( )

Definition at line 155 of file test_use_fd.cpp.

◆ test_pair_tcp()

void test_pair_tcp ( )

Definition at line 126 of file test_use_fd.cpp.

◆ test_req_rep()

void test_req_rep ( pre_allocate_sock_fun_t  pre_allocate_sock_fun_)

Definition at line 54 of file test_use_fd.cpp.

◆ test_req_rep_ipc()

void test_req_rep_ipc ( )

Definition at line 148 of file test_use_fd.cpp.

◆ test_req_rep_tcp()

void test_req_rep_tcp ( )

Definition at line 121 of file test_use_fd.cpp.

◆ test_socket_pair()

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.

Variable Documentation

◆ ipc_endpoint

char ipc_endpoint[MAX_SOCKET_STRING] = ""

Definition at line 138 of file test_use_fd.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04