1 /* Copyright (c) 2014-2020, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 #ifndef TOR_TEST_CONNECTION_H
5 #define TOR_TEST_CONNECTION_H
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
15 void test_conn_lookup_addr_helper(const char *address
,
16 int family
, tor_addr_t
*addr
);
18 #endif /* !defined(TOR_TEST_CONNECTION_H) */