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

#include <udp_address.hpp>

Collaboration diagram for zmq::udp_address_t:

Public Member Functions

 udp_address_t ()
 
virtual ~udp_address_t ()
 
const sockaddr * bind_addr () const
 
socklen_t bind_addrlen () const
 
const sockaddr * dest_addr () const
 
socklen_t dest_addrlen () const
 
sa_family_t family () const
 
const in_addr interface_ip () const
 
bool is_mcast () const
 
const in_addr multicast_ip () const
 
int resolve (const char *name_, bool receiver_)
 
virtual int to_string (std::string &addr_)
 

Private Attributes

std::string address
 
sockaddr_in bind_address
 
sockaddr_in dest_address
 
in_addr iface
 
bool is_mutlicast
 
in_addr multicast
 

Detailed Description

Definition at line 44 of file udp_address.hpp.

Constructor & Destructor Documentation

zmq::udp_address_t::udp_address_t ( )

Definition at line 50 of file udp_address.cpp.

References bind_address, and dest_address.

zmq::udp_address_t::~udp_address_t ( )
virtual

Definition at line 57 of file udp_address.cpp.

Member Function Documentation

const sockaddr * zmq::udp_address_t::bind_addr ( ) const

Definition at line 138 of file udp_address.cpp.

References bind_address.

Referenced by zmq::udp_engine_t::plug().

Here is the caller graph for this function:

socklen_t zmq::udp_address_t::bind_addrlen ( ) const

Definition at line 143 of file udp_address.cpp.

Referenced by zmq::udp_engine_t::plug().

Here is the caller graph for this function:

const sockaddr * zmq::udp_address_t::dest_addr ( ) const

Definition at line 148 of file udp_address.cpp.

References dest_address.

Referenced by zmq::udp_engine_t::out_event().

Here is the caller graph for this function:

socklen_t zmq::udp_address_t::dest_addrlen ( ) const

Definition at line 153 of file udp_address.cpp.

Referenced by zmq::udp_engine_t::out_event().

Here is the caller graph for this function:

sa_family_t zmq::udp_address_t::family ( ) const

Definition at line 171 of file udp_address.cpp.

Referenced by zmq::udp_engine_t::init(), and interface_ip().

Here is the caller graph for this function:

const in_addr zmq::udp_address_t::interface_ip ( ) const

Definition at line 163 of file udp_address.cpp.

References family(), and iface.

Referenced by zmq::udp_engine_t::plug().

Here is the call graph for this function:

Here is the caller graph for this function:

bool zmq::udp_address_t::is_mcast ( ) const

Definition at line 133 of file udp_address.cpp.

References is_mutlicast.

Referenced by zmq::udp_engine_t::plug().

Here is the caller graph for this function:

const in_addr zmq::udp_address_t::multicast_ip ( ) const

Definition at line 158 of file udp_address.cpp.

References multicast.

Referenced by zmq::udp_engine_t::plug().

Here is the caller graph for this function:

int zmq::udp_address_t::resolve ( const char *  name_,
bool  receiver_ 
)

Definition at line 61 of file udp_address.cpp.

References address, bind_address, dest_address, iface, is_mutlicast, and multicast.

Referenced by zmq::socket_base_t::connect().

Here is the caller graph for this function:

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

Definition at line 127 of file udp_address.cpp.

References address.

Member Data Documentation

std::string zmq::udp_address_t::address
private

Definition at line 78 of file udp_address.hpp.

Referenced by resolve(), and to_string().

sockaddr_in zmq::udp_address_t::bind_address
private

Definition at line 75 of file udp_address.hpp.

Referenced by bind_addr(), resolve(), and udp_address_t().

sockaddr_in zmq::udp_address_t::dest_address
private

Definition at line 76 of file udp_address.hpp.

Referenced by dest_addr(), resolve(), and udp_address_t().

in_addr zmq::udp_address_t::iface
private

Definition at line 74 of file udp_address.hpp.

Referenced by interface_ip(), and resolve().

bool zmq::udp_address_t::is_mutlicast
private

Definition at line 77 of file udp_address.hpp.

Referenced by is_mcast(), and resolve().

in_addr zmq::udp_address_t::multicast
private

Definition at line 73 of file udp_address.hpp.

Referenced by multicast_ip(), and resolve().