Go to the documentation of this file.
4 #include "../tests/testutil.hpp"
5 #include "../unittests/unittest_resolver_common.hpp"
23 const char *target_addr_,
24 uint16_t expected_port_,
25 const char *bind_addr_,
34 int rc = addr.
resolve (
name_, bind_, family_ == AF_INET6);
36 if (target_addr_ ==
NULL) {
46 if (bind_addr_ ==
NULL) {
48 if (family_ == AF_INET) {
49 bind_addr_ =
"0.0.0.0";
62 const char *dest_addr_,
63 uint16_t expected_port_ = 0,
64 const char *bind_addr_ =
NULL,
65 bool multicast_ =
false)
73 const char *dest_addr_,
74 uint16_t expected_port_ = 0,
75 const char *bind_addr_ =
NULL,
76 bool multicast_ =
false)
203 int rc = addr.
resolve (
"[::1];[ffab::4]:5555",
true,
true);
225 5555,
"8.9.10.11",
true);
235 int rc = addr.
resolve (
"[1:2:3::4];[ff01::1]:5555",
false,
true);
static void test_resolve_ipv6_connect_mcast()
static void test_resolve_ipv4_bind_any_port()
static void test_resolve_ipv4_simple()
static void test_resolve_ipv6_mcast_src_connect_bad()
static void test_resolve_ipv4_connect_port0()
const ip_addr_t * bind_addr() const
static void test_resolve_ipv4_mcast_src_connect()
static void test_resolve(bool bind_, int family_, const char *name_, const char *target_addr_, uint16_t expected_port_, const char *bind_addr_, bool multicast_)
static void test_resolve_ipv4_bind_mcast()
int resolve(const char *name_, bool bind_, bool ipv6_)
static void test_resolve_ipv6_bind_anyport()
static void test_resolve_connect(int family_, const char *name_, const char *dest_addr_, uint16_t expected_port_=0, const char *bind_addr_=NULL, bool multicast_=false)
void validate_address(int family, const zmq::ip_addr_t *addr_, const char *expected_addr_, uint16_t expected_port_=0, uint16_t expected_zone_=0, const char *expected_addr_v4_failover_=NULL)
static void test_resolve_ipv4_mcast_src_bind_bad()
static void test_resolve_ipv4_bind_anyport()
static void test_resolve_ipv4_mcast_src_connect_bad()
static void test_resolve_ipv4_bind_any()
static void test_resolve_ipv4_bind()
static void test_resolve_ipv6_connect_port0()
static void test_resolve_ipv6_mcast_src_connect()
static void test_resolve_ipv6_bind()
static void test_resolve_ipv6_bind_mcast()
static void test_resolve_ipv6_connect_any()
static void test_resolve_bind(int family_, const char *name_, const char *dest_addr_, uint16_t expected_port_=0, const char *bind_addr_=NULL, bool multicast_=false)
static void test_resolve_ipv6_connect_anyport()
static void test_resolve_ipv6_bind_any_port()
static void test_resolve_ipv4_connect_any()
static void test_resolve_ipv4_connect_mcast()
const ip_addr_t * target_addr() const
#define TEST_ASSERT_EQUAL(expected, actual)
static void test_resolve_ipv6_mcast_src_connect_any()
#define TEST_IGNORE_MESSAGE(message)
bool initialize_network()
static void test_resolve_ipv6_bind_any()
static void test_resolve_ipv4_mcast_src_bind()
void setup_test_environment(int timeout_seconds_)
static void test_resolve_ipv6_mcast_src_bind_any()
static void test_resolve_ipv6_mcast_src_bind_bad()
static void test_resolve_ipv4_mcast_src_connect_any()
static void test_resolve_ipv4_connect_anyport()
static void test_resolve_ipv6_simple()
static void test_resolve_ipv4_mcast_src_bind_any()
static void test_resolve_ipv6_mcast_src_bind()
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00