1 /* Copyright (c) 2014-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 /** Some constants used by test_connection and helpers */
5 #define TEST_CONN_FAMILY (AF_INET)
6 #define TEST_CONN_ADDRESS "127.0.0.1"
7 #define TEST_CONN_PORT (12345)
8 #define TEST_CONN_ADDRESS_PORT "127.0.0.1:12345"
9 #define TEST_CONN_FD_INIT 50
11 void test_conn_lookup_addr_helper(const char *address
,
12 int family
, tor_addr_t
*addr
);