test_connection.h 589 B

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