OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DnsAgentXmpp Class Reference

#include <xmpp_dns_agent.h>

Public Types

enum  XmppType { Update, UpdateResponse, DnsQuery, DnsQueryResponse }
 

Static Public Member Functions

static std::size_t DnsAgentXmppEncode (XmppChannel *channel, XmppType type, uint32_t trans_id, uint32_t resp_code, DnsUpdateData *xmpp_data, uint8_t *data)
 
static bool DnsAgentXmppDecode (const pugi::xml_node dns, XmppType &type, uint32_t &xid, uint16_t &resp_code, DnsUpdateData *data, std::string source_name="")
 

Static Public Attributes

static const uint16_t max_dns_xmpp_msg_len = 8192
 

Static Private Member Functions

static void EncodeDnsData (pugi::xml_node *node, DnsUpdateData *xmpp_data)
 
static void EncodeDnsItem (pugi::xml_node *node, DnsItem &entry)
 
static bool DecodeDns (const pugi::xml_node node, XmppType &type, bool is_resp, DnsUpdateData *data, std::string source_name)
 
static bool DecodeDnsItems (const pugi::xml_node dnsdata, DnsUpdateData *data, std::string source_name)
 

Detailed Description

Definition at line 25 of file xmpp_dns_agent.h.

Member Enumeration Documentation

Enumerator
Update 
UpdateResponse 
DnsQuery 
DnsQueryResponse 

Definition at line 29 of file xmpp_dns_agent.h.

Member Function Documentation

bool DnsAgentXmpp::DecodeDns ( const pugi::xml_node  node,
XmppType type,
bool  is_resp,
DnsUpdateData data,
std::string  source_name 
)
staticprivate

Definition at line 144 of file xmpp_dns_agent.cc.

Here is the call graph for this function:

bool DnsAgentXmpp::DecodeDnsItems ( const pugi::xml_node  dnsdata,
DnsUpdateData data,
std::string  source_name 
)
staticprivate

Definition at line 162 of file xmpp_dns_agent.cc.

bool DnsAgentXmpp::DnsAgentXmppDecode ( const pugi::xml_node  dns,
XmppType type,
uint32_t &  xid,
uint16_t &  resp_code,
DnsUpdateData data,
std::string  source_name = "" 
)
static

Definition at line 128 of file xmpp_dns_agent.cc.

Here is the call graph for this function:

std::size_t DnsAgentXmpp::DnsAgentXmppEncode ( XmppChannel channel,
XmppType  type,
uint32_t  trans_id,
uint32_t  resp_code,
DnsUpdateData xmpp_data,
uint8_t *  data 
)
static

Definition at line 16 of file xmpp_dns_agent.cc.

Here is the call graph for this function:

void DnsAgentXmpp::EncodeDnsData ( pugi::xml_node *  node,
DnsUpdateData xmpp_data 
)
staticprivate

Definition at line 82 of file xmpp_dns_agent.cc.

Here is the call graph for this function:

void DnsAgentXmpp::EncodeDnsItem ( pugi::xml_node *  node,
DnsItem entry 
)
staticprivate

Definition at line 99 of file xmpp_dns_agent.cc.

Member Data Documentation

const uint16_t DnsAgentXmpp::max_dns_xmpp_msg_len = 8192
static

Definition at line 27 of file xmpp_dns_agent.h.


The documentation for this class was generated from the following files: