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);
65 #endif // __DNS_XMPP_H__
static void HandleXmppClientChannelEvent(AgentDnsXmppChannel *peer, xmps::PeerState state)
virtual void WriteReadyCb(const boost::system::error_code &ec)
static DnsXmppEventHandler dns_xmpp_event_handler_cb_
static DnsMessageHandler dns_message_handler_cb_
virtual ~AgentDnsXmppChannel()
virtual bool SendMsg(uint8_t *msg, std::size_t len)
uint8_t GetXmppServerIdx()
boost::function< void(DnsUpdateData *, DnsAgentXmpp::XmppType, VmInterface const *, bool)> DnsMessageHandler
void UpdateConnectionInfo(xmps::PeerState state)
void RegisterXmppChannel(XmppChannel *channel)
static void set_dns_xmpp_event_handler_cb(DnsXmppEventHandler cb)
virtual void ReceiveMsg(const XmppStanza::XmppMessage *msg)
void ReceiveInternal(const XmppStanza::XmppMessage *msg)
std::string GetXmppServer()
static void set_dns_message_handler_cb(DnsMessageHandler cb)
virtual std::string ToString() const
boost::function< void(AgentDnsXmppChannel *)> DnsXmppEventHandler
XmppChannel * GetXmppChannel()
static void XmppClientChannelEvent(AgentDnsXmppChannel *peer, xmps::PeerState state)
void ReceiveDnsMessage(std::unique_ptr< XmlBase > impl)
AgentDnsXmppChannel(Agent *agent, std::string xmpp_server, uint8_t xs_idx)