test_connection.h 483 B

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