mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 06:44:16 +02:00
Problem: protected data member in ip_resolver_t
Solution: declare private
This commit is contained in:
@@ -88,6 +88,17 @@ class ip_resolver_t
|
|||||||
int resolve (ip_addr_t *ip_addr_, const char *name_);
|
int resolve (ip_addr_t *ip_addr_, const char *name_);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// Virtual functions that are overridden in tests
|
||||||
|
virtual int do_getaddrinfo (const char *node_,
|
||||||
|
const char *service_,
|
||||||
|
const struct addrinfo *hints_,
|
||||||
|
struct addrinfo **res_);
|
||||||
|
|
||||||
|
virtual void do_freeaddrinfo (struct addrinfo *res_);
|
||||||
|
|
||||||
|
virtual unsigned int do_if_nametoindex (const char *ifname_);
|
||||||
|
|
||||||
|
private:
|
||||||
ip_resolver_options_t _options;
|
ip_resolver_options_t _options;
|
||||||
|
|
||||||
int resolve_nic_name (ip_addr_t *ip_addr_, const char *nic_);
|
int resolve_nic_name (ip_addr_t *ip_addr_, const char *nic_);
|
||||||
@@ -97,16 +108,6 @@ class ip_resolver_t
|
|||||||
int get_interface_name (unsigned long index_, char **dest_) const;
|
int get_interface_name (unsigned long index_, char **dest_) const;
|
||||||
int wchar_to_utf8 (const WCHAR *src_, char **dest_) const;
|
int wchar_to_utf8 (const WCHAR *src_, char **dest_) const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Virtual functions that are overriden in tests
|
|
||||||
virtual int do_getaddrinfo (const char *node_,
|
|
||||||
const char *service_,
|
|
||||||
const struct addrinfo *hints_,
|
|
||||||
struct addrinfo **res_);
|
|
||||||
|
|
||||||
virtual void do_freeaddrinfo (struct addrinfo *res_);
|
|
||||||
|
|
||||||
virtual unsigned int do_if_nametoindex (const char *ifname_);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user