5 #ifndef _xmpp_dns_agent_h_
6 #define _xmpp_dns_agent_h_
9 #define DNS_XMPP_TRACE(obj, arg) \
11 std::ostringstream _str; \
13 obj::TraceMsg(AgentXmppTraceBuf, __FILE__, __LINE__, _str.str()); \
37 uint32_t trans_id, uint32_t resp_code,
42 uint16_t &resp_code,
DnsUpdateData *data, std::string source_name=
"");
53 #endif // _xmpp_dns_agent_h_
static bool DecodeDns(const pugi::xml_node node, XmppType &type, bool is_resp, DnsUpdateData *data, std::string source_name)
static void EncodeDnsItem(pugi::xml_node *node, DnsItem &entry)
static const uint16_t max_dns_xmpp_msg_len
boost::shared_ptr< TraceBuffer< SandeshTrace > > SandeshTraceBufferPtr
static bool DecodeDnsItems(const pugi::xml_node dnsdata, DnsUpdateData *data, std::string source_name)
static std::size_t DnsAgentXmppEncode(XmppChannel *channel, XmppType type, uint32_t trans_id, uint32_t resp_code, DnsUpdateData *xmpp_data, uint8_t *data)
SandeshTraceBufferPtr AgentXmppTraceBuf
static bool DnsAgentXmppDecode(const pugi::xml_node dns, XmppType &type, uint32_t &xid, uint16_t &resp_code, DnsUpdateData *data, std::string source_name="")
static void EncodeDnsData(pugi::xml_node *node, DnsUpdateData *xmpp_data)