libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::tcp_address_mask_t Class Reference

#include <tcp_address.hpp>

Inheritance diagram for zmq::tcp_address_mask_t:
Collaboration diagram for zmq::tcp_address_mask_t:

Public Member Functions

 tcp_address_mask_t ()
 
int mask () const
 
bool match_address (const struct sockaddr *ss, const socklen_t ss_len) const
 
int resolve (const char *name_, bool ipv6_)
 
int to_string (std::string &addr_)
 
- Public Member Functions inherited from zmq::tcp_address_t
 tcp_address_t ()
 
 tcp_address_t (const sockaddr *sa, socklen_t sa_len)
 
virtual ~tcp_address_t ()
 
const sockaddr * addr () const
 
socklen_t addrlen () const
 
sa_family_t family () const
 
bool has_src_addr () const
 
int resolve (const char *name_, bool local_, bool ipv6_, bool is_src_=false)
 
const sockaddr * src_addr () const
 
socklen_t src_addrlen () const
 

Private Attributes

int address_mask
 

Additional Inherited Members

- Protected Member Functions inherited from zmq::tcp_address_t
int resolve_hostname (const char *hostname_, bool ipv6_, bool is_src_=false)
 
int resolve_interface (const char *interface_, bool ipv6_, bool is_src_=false)
 
int resolve_nic_name (const char *nic_, bool ipv6_, bool is_src_=false)
 
- Protected Attributes inherited from zmq::tcp_address_t
bool _has_src_addr
 
union {
   sockaddr   generic
 
   sockaddr_in   ipv4
 
   sockaddr_in6   ipv6
 
address
 
union {
   sockaddr   generic
 
   sockaddr_in   ipv4
 
   sockaddr_in6   ipv6
 
source_address
 

Detailed Description

Definition at line 93 of file tcp_address.hpp.

Constructor & Destructor Documentation

zmq::tcp_address_mask_t::tcp_address_mask_t ( )

Definition at line 586 of file tcp_address.cpp.

Member Function Documentation

int zmq::tcp_address_mask_t::mask ( ) const

Definition at line 592 of file tcp_address.cpp.

References address_mask.

Referenced by match_address(), and resolve().

Here is the caller graph for this function:

bool zmq::tcp_address_mask_t::match_address ( const struct sockaddr *  ss,
const socklen_t  ss_len 
) const

Definition at line 678 of file tcp_address.cpp.

References zmq::tcp_address_t::address, address_mask, mask(), and zmq_assert.

Here is the call graph for this function:

int zmq::tcp_address_mask_t::resolve ( const char *  name_,
bool  ipv6_ 
)

Definition at line 597 of file tcp_address.cpp.

References zmq::tcp_address_t::address, address_mask, mask(), and zmq::tcp_address_t::resolve_hostname().

Referenced by zmq::options_t::setsockopt().

Here is the call graph for this function:

Here is the caller graph for this function:

int zmq::tcp_address_mask_t::to_string ( std::string &  addr_)
virtual

Reimplemented from zmq::tcp_address_t.

Definition at line 646 of file tcp_address.cpp.

References zmq::tcp_address_t::addr(), zmq::tcp_address_t::address, address_mask, and zmq::tcp_address_t::addrlen().

Here is the call graph for this function:

Member Data Documentation

int zmq::tcp_address_mask_t::address_mask
private

Definition at line 111 of file tcp_address.hpp.

Referenced by mask(), match_address(), resolve(), and to_string().