class holding pending jobs and the packets waiting for its completition More...
#include <resolver.h>
Public Member Functions | |
| resolver_job (resolver &owner, dpacket dp) | |
| ~resolver_job () | |
| void | add_packet (dpacket dp) |
| std::list< dpacket > const & | get_packets () const |
| sigc::connection | register_result_callback (sigc::signal< void, resolver_job & >::slot_type const &callback) |
| Glib::ustring | get_result () const |
| xmppd::jabberid | get_resend_host () const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, resolver_job &job) |
class holding pending jobs and the packets waiting for its completition
This class stores all packets for a given destination, resolves the IP address for this destination and then resends the packets to a s2s component including the resolved addresses
create a new resolving job
| dp | the packet resolving is started for |
| std::invalid_argument | on failed sanity checks |
References add_packet(), and dpacket_struct::host.
| xmppd::resolver::resolver_job::~resolver_job | ( | ) |
destructor
| void xmppd::resolver::resolver_job::add_packet | ( | dpacket | dp | ) |
add a packet that waits for the job to be completed
| dp | the packet that is waiting |
| std::invalid_argument | if the packet has a different destination, that what is being resolved by this job |
Referenced by resolver_job().
| std::list< dpacket > const & xmppd::resolver::resolver_job::get_packets | ( | ) | const |
get the waiting packets
| xmppd::jabberid xmppd::resolver::resolver_job::get_resend_host | ( | ) | const |
get the service where to send packets to that have been resolved by this job
| Glib::ustring xmppd::resolver::resolver_job::get_result | ( | ) | const |
get the resolving result
Referenced by xmppd::resolver::operator<<().
| sigc::connection xmppd::resolver::resolver_job::register_result_callback | ( | sigc::signal< void, resolver_job & >::slot_type const & | callback | ) |
register for being notified on finishing the job
| callback | what should get notified on finishing the job |
| std::ostream& operator<< | ( | std::ostream & | out, | |
| resolver_job & | job | |||
| ) | [friend] |
1.6.1