2021-03-12 11:39:23 -05:00
|
|
|
/* Copyright (c) 2014-2021, The Tor Project, Inc. */
|
2017-05-02 16:35:22 +03:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2019-03-12 15:20:22 -04:00
|
|
|
#ifndef TOR_TEST_CONNECTION_H
|
|
|
|
#define TOR_TEST_CONNECTION_H
|
|
|
|
|
2017-05-02 16:35:22 +03:00
|
|
|
/** Some constants used by test_connection and helpers */
|
|
|
|
#define TEST_CONN_FAMILY (AF_INET)
|
|
|
|
#define TEST_CONN_ADDRESS "127.0.0.1"
|
2019-10-21 18:00:02 +08:00
|
|
|
#define TEST_CONN_ADDRESS_2 "127.0.0.2"
|
2017-05-02 16:35:22 +03:00
|
|
|
#define TEST_CONN_PORT (12345)
|
|
|
|
#define TEST_CONN_ADDRESS_PORT "127.0.0.1:12345"
|
2020-04-03 16:47:38 +07:00
|
|
|
#define TEST_CONN_FD_INIT 0x10000
|
2017-05-02 16:35:22 +03:00
|
|
|
|
|
|
|
void test_conn_lookup_addr_helper(const char *address,
|
|
|
|
int family, tor_addr_t *addr);
|
|
|
|
|
2019-06-05 09:33:35 -04:00
|
|
|
#endif /* !defined(TOR_TEST_CONNECTION_H) */
|