11 #include <boost/function.hpp>
12 #include <boost/system/error_code.hpp>
31 std::string xmpp_server, uint8_t xs_idx);
34 virtual std::string
ToString()
const;
35 virtual bool SendMsg(uint8_t *msg, std::size_t len);
53 virtual void WriteReadyCb(
const boost::system::error_code &ec);
void ReceiveDnsMessage(std::unique_ptr< XmlBase > impl)
virtual bool SendMsg(uint8_t *msg, std::size_t len)
static void XmppClientChannelEvent(AgentDnsXmppChannel *peer, xmps::PeerState state)
virtual std::string ToString() const
void ReceiveInternal(const XmppStanza::XmppMessage *msg)
static void set_dns_message_handler_cb(DnsMessageHandler cb)
uint8_t GetXmppServerIdx()
void UpdateConnectionInfo(xmps::PeerState state)
boost::function< void(AgentDnsXmppChannel *)> DnsXmppEventHandler
static DnsMessageHandler dns_message_handler_cb_
std::string GetXmppServer()
virtual void WriteReadyCb(const boost::system::error_code &ec)
AgentDnsXmppChannel(Agent *agent, std::string xmpp_server, uint8_t xs_idx)
virtual void ReceiveMsg(const XmppStanza::XmppMessage *msg)
XmppChannel * GetXmppChannel()
void RegisterXmppChannel(XmppChannel *channel)
boost::function< void(DnsUpdateData *, DnsAgentXmpp::XmppType, VmInterface const *, bool)> DnsMessageHandler
static void set_dns_xmpp_event_handler_cb(DnsXmppEventHandler cb)
virtual ~AgentDnsXmppChannel()
static void HandleXmppClientChannelEvent(AgentDnsXmppChannel *peer, xmps::PeerState state)
static DnsXmppEventHandler dns_xmpp_event_handler_cb_