test_connection.h (644B)
1 /* Copyright (c) 2014-2021, The Tor Project, Inc. */ 2 /* See LICENSE for licensing information */ 3 4 #ifndef TOR_TEST_CONNECTION_H 5 #define TOR_TEST_CONNECTION_H 6 7 /** Some constants used by test_connection and helpers */ 8 #define TEST_CONN_FAMILY (AF_INET) 9 #define TEST_CONN_ADDRESS "127.0.0.1" 10 #define TEST_CONN_ADDRESS_2 "127.0.0.2" 11 #define TEST_CONN_PORT (12345) 12 #define TEST_CONN_ADDRESS_PORT "127.0.0.1:12345" 13 #define TEST_CONN_FD_INIT 0x10000 14 15 void test_conn_lookup_addr_helper(const char *address, 16 int family, tor_addr_t *addr); 17 18 #endif /* !defined(TOR_TEST_CONNECTION_H) */