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

#include <xmpp_proto.h>

Inheritance diagram for XmppProto:
Collaboration diagram for XmppProto:

Static Public Member Functions

static XmppStanza::XmppMessageDecode (const XmppConnection *connection, const std::string &ts)
 
static int EncodeStream (const XmppStreamMessage &str, std::string &to, std::string &from, const std::string &xmlns, uint8_t *data, size_t size)
 
static int EncodeStream (const XmppMessage &str, uint8_t *data, size_t size)
 
static int EncodeMessage (const XmppChatMessage *, uint8_t *data, size_t size)
 
static int EncodeMessage (XmlBase *, uint8_t *data, size_t size)
 
static int EncodePresence (uint8_t *data, size_t size)
 
static int EncodeIq (const XmppMessageIq *iq, XmlBase *doc, uint8_t *data, size_t size)
 
- Static Public Member Functions inherited from XmppStanza
static XmlBaseAllocXmppXmlImpl (const char *doc=NULL)
 

Private Member Functions

 XmppProto ()
 
 ~XmppProto ()
 
 DISALLOW_COPY_AND_ASSIGN (XmppProto)
 

Static Private Member Functions

static int EncodeOpen (uint8_t *data, std::string &to, std::string &from, const std::string &xmlns, size_t size)
 
static int EncodeOpenResp (uint8_t *data, std::string &to, std::string &from, size_t size)
 
static int EncodeFeatureTlsRequest (uint8_t *data)
 
static int EncodeFeatureTlsStart (uint8_t *data)
 
static int EncodeFeatureTlsProceed (uint8_t *data)
 
static int EncodeWhitespace (uint8_t *data)
 
static int SetTo (std::string &to, XmlBase *doc)
 
static int SetFrom (std::string &from, XmlBase *doc)
 
static int SetXmlns (const std::string &from, XmlBase *doc)
 
static const char * GetId (XmlBase *doc)
 
static const char * GetType (XmlBase *doc)
 
static const char * GetTo (XmlBase *doc)
 
static const char * GetFrom (XmlBase *doc)
 
static const char * GetXmlns (XmlBase *doc)
 
static const char * GetAction (XmlBase *doc, const std::string &str)
 
static const char * GetNode (XmlBase *doc, const std::string &str)
 
static const char * GetAsNode (XmlBase *doc)
 
static const char * GetDsNode (XmlBase *doc)
 
static XmppStanza::XmppMessageDecodeInternal (const XmppConnection *connection, const std::string &ts, XmlBase *impl)
 

Static Private Attributes

static std::unique_ptr< XmlBaseopen_doc_
 

Additional Inherited Members

- Public Types inherited from XmppStanza
enum  XmppMessageType {
  INVALID = 0, STREAM_HEADER = 1, MESSAGE_STANZA = 2, IQ_STANZA = 3,
  WHITESPACE_MESSAGE_STANZA = 4, RESERVED_STANZA = 5
}
 
enum  XmppStanzaErrorType {
  NONE = 0, BAD_REQUEST = 1, CONFLICT = 2, FEATURE_NOT_IMPLEMENTED = 3,
  FORBIDDEN = 4, GONE = 5, INTERNAL_SERVER_ERROR = 6, ITEMS_NOT_FOUND = 7,
  JID_MALFORMED = 8, NOT_ACCEPTABLE = 9, NOT_ALLOWED = 10, NOT_AUTHORIZED = 11,
  POLICY_VIOLATION = 12, RECIPIENT_UNAVAILABLE = 13, REDIRECT = 14, REGISTRATION_REQUIRED = 15,
  REMOTE_SERVER_NOT_FOUND = 16, REMOTE_SERVER_TIMEOUT = 17, RESOURCE_CONSTRAINT = 18, SERVICE_UNAVAILABLE = 19,
  SUBSCRIPTION_REQUIRED = 20, UNDEFINED_CONDITION = 21, UNEXPECTED_REQUEST = 22, APPLICATION_SEPCIFIC_CONDITION = 23
}
 
enum  XmppMessageStateType {
  STATE_NONE = 0, STATE_ACTIVE = 1, STATE_COMPOSING = 2, STATE_PAUSED = 3,
  STATE_INACTIVE = 4, STATE_GONE = 5
}
 
- Public Member Functions inherited from XmppStanza
 XmppStanza ()
 

Detailed Description

Definition at line 178 of file xmpp_proto.h.

Constructor & Destructor Documentation

XmppProto::XmppProto ( )
private

Definition at line 29 of file xmpp_proto.cc.

XmppProto::~XmppProto ( )
private

Definition at line 32 of file xmpp_proto.cc.

Member Function Documentation

XmppStanza::XmppMessage * XmppProto::Decode ( const XmppConnection connection,
const std::string &  ts 
)
static

Definition at line 213 of file xmpp_proto.cc.

Here is the call graph for this function:

XmppStanza::XmppMessage * XmppProto::DecodeInternal ( const XmppConnection connection,
const std::string &  ts,
XmlBase impl 
)
staticprivate

Definition at line 231 of file xmpp_proto.cc.

Here is the call graph for this function:

XmppProto::DISALLOW_COPY_AND_ASSIGN ( XmppProto  )
private
int XmppProto::EncodeFeatureTlsProceed ( uint8_t *  data)
staticprivate

Definition at line 206 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::EncodeFeatureTlsRequest ( uint8_t *  data)
staticprivate

Definition at line 192 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::EncodeFeatureTlsStart ( uint8_t *  data)
staticprivate

Definition at line 199 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::EncodeIq ( const XmppMessageIq iq,
XmlBase doc,
uint8_t *  data,
size_t  size 
)
static

Definition at line 88 of file xmpp_proto.cc.

static int XmppProto::EncodeMessage ( const XmppChatMessage ,
uint8_t *  data,
size_t  size 
)
static
int XmppProto::EncodeMessage ( XmlBase dom,
uint8_t *  data,
size_t  size 
)
static

Definition at line 78 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::EncodeOpen ( uint8_t *  data,
std::string &  to,
std::string &  from,
const std::string &  xmlns,
size_t  size 
)
staticprivate

Definition at line 165 of file xmpp_proto.cc.

int XmppProto::EncodeOpenResp ( uint8_t *  data,
std::string &  to,
std::string &  from,
size_t  size 
)
staticprivate

Definition at line 138 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::EncodePresence ( uint8_t *  data,
size_t  size 
)
static

Definition at line 84 of file xmpp_proto.cc.

static int XmppProto::EncodeStream ( const XmppStreamMessage str,
std::string &  to,
std::string &  from,
const std::string &  xmlns,
uint8_t *  data,
size_t  size 
)
static
int XmppProto::EncodeStream ( const XmppMessage str,
uint8_t *  data,
size_t  size 
)
static

Definition at line 67 of file xmpp_proto.cc.

int XmppProto::EncodeWhitespace ( uint8_t *  data)
staticprivate

Definition at line 127 of file xmpp_proto.cc.

const char * XmppProto::GetAction ( XmlBase doc,
const std::string &  str 
)
staticprivate

Definition at line 465 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetAsNode ( XmlBase doc)
staticprivate

Definition at line 487 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetDsNode ( XmlBase doc)
staticprivate

Definition at line 498 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetFrom ( XmlBase doc)
staticprivate

Definition at line 436 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetId ( XmlBase doc)
staticprivate

Definition at line 451 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetNode ( XmlBase doc,
const std::string &  str 
)
staticprivate

Definition at line 477 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetTo ( XmlBase doc)
staticprivate

Definition at line 429 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetType ( XmlBase doc)
staticprivate

Definition at line 458 of file xmpp_proto.cc.

Here is the call graph for this function:

const char * XmppProto::GetXmlns ( XmlBase doc)
staticprivate

Definition at line 443 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::SetFrom ( std::string &  from,
XmlBase doc 
)
staticprivate

Definition at line 412 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::SetTo ( std::string &  to,
XmlBase doc 
)
staticprivate

Definition at line 402 of file xmpp_proto.cc.

Here is the call graph for this function:

int XmppProto::SetXmlns ( const std::string &  from,
XmlBase doc 
)
staticprivate

Definition at line 420 of file xmpp_proto.cc.

Here is the call graph for this function:

Member Data Documentation

unique_ptr< XmlBase > XmppProto::open_doc_
staticprivate

Definition at line 220 of file xmpp_proto.h.


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