#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <fcntl.h>#include <errno.h>#include "testutil.hpp"#include "testutil_unity.hpp"
Go to the source code of this file.
Definition at line 450 of file test_socks.cpp.
| int main | ( | ) |
Definition at line 846 of file test_socks.cpp.
| SETUP_TEARDOWN_TESTCONTEXT void recvall | ( | int | sock_fd, |
| char * | buffer, | ||
| int | len | ||
| ) |
Definition at line 24 of file test_socks.cpp.
| int recvonce | ( | int | sock_fd, |
| char * | buffer, | ||
| int | len | ||
| ) |
Definition at line 40 of file test_socks.cpp.
| int remote_connect | ( | int | socket, |
| uint32_t | addr, | ||
| uint16_t | port | ||
| ) |
Definition at line 66 of file test_socks.cpp.
| void sendall | ( | int | sock_fd, |
| char * | buffer, | ||
| int | len | ||
| ) |
Definition at line 51 of file test_socks.cpp.
| void* setup_pull_client | ( | const char * | connect_address, |
| const char * | socks_proxy | ||
| ) |
Definition at line 401 of file test_socks.cpp.
| void* setup_push_server | ( | char * | connect_address, |
| int | connect_address_size | ||
| ) |
Definition at line 387 of file test_socks.cpp.
| void* setup_socks_server | ( | char * | socks_server_address, |
| int | socks_server_address_len | ||
| ) |
Definition at line 77 of file test_socks.cpp.
Definition at line 369 of file test_socks.cpp.
Definition at line 374 of file test_socks.cpp.
Definition at line 382 of file test_socks.cpp.
Definition at line 356 of file test_socks.cpp.
Definition at line 361 of file test_socks.cpp.
| void socks_server_task | ( | void * | socks_server, |
| const char * | username, | ||
| const char * | password, | ||
| int | max_client_connect | ||
| ) |
Definition at line 91 of file test_socks.cpp.
| void test_opt_invalid | ( | const char * | msg, |
| int | opt, | ||
| const char * | value, | ||
| int | len | ||
| ) |
Definition at line 796 of file test_socks.cpp.
| void test_opt_ok | ( | const char * | msg, |
| int | opt, | ||
| const char * | value, | ||
| size_t | len, | ||
| const char * | expected_value, | ||
| size_t | expected_len | ||
| ) |
Definition at line 774 of file test_socks.cpp.
Definition at line 473 of file test_socks.cpp.
Definition at line 607 of file test_socks.cpp.
Definition at line 632 of file test_socks.cpp.
Definition at line 707 of file test_socks.cpp.
Definition at line 657 of file test_socks.cpp.
Definition at line 732 of file test_socks.cpp.
Definition at line 682 of file test_socks.cpp.
Definition at line 583 of file test_socks.cpp.
Definition at line 492 of file test_socks.cpp.
Definition at line 511 of file test_socks.cpp.
Definition at line 535 of file test_socks.cpp.
Definition at line 559 of file test_socks.cpp.
Definition at line 461 of file test_socks.cpp.
Definition at line 806 of file test_socks.cpp.
Definition at line 815 of file test_socks.cpp.
| void test_string_opt_ok | ( | const char * | msg, |
| int | opt, | ||
| const char * | value | ||
| ) |
Definition at line 758 of file test_socks.cpp.