#include <xmpp_proto.h>
|
static XmppStanza::XmppMessage * | Decode (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 XmlBase * | AllocXmppXmlImpl (const char *doc=NULL) |
|
|
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::XmppMessage * | DecodeInternal (const XmppConnection *connection, const std::string &ts, XmlBase *impl) |
|
|
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
} |
|
| XmppStanza () |
|
Definition at line 178 of file xmpp_proto.h.
XmppProto::~XmppProto |
( |
| ) |
|
|
private |
XmppProto::DISALLOW_COPY_AND_ASSIGN |
( |
XmppProto |
| ) |
|
|
private |
int XmppProto::EncodeFeatureTlsProceed |
( |
uint8_t * |
data | ) |
|
|
staticprivate |
int XmppProto::EncodeFeatureTlsRequest |
( |
uint8_t * |
data | ) |
|
|
staticprivate |
int XmppProto::EncodeFeatureTlsStart |
( |
uint8_t * |
data | ) |
|
|
staticprivate |
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 |
int XmppProto::EncodeOpen |
( |
uint8_t * |
data, |
|
|
std::string & |
to, |
|
|
std::string & |
from, |
|
|
const std::string & |
xmlns, |
|
|
size_t |
size |
|
) |
| |
|
staticprivate |
int XmppProto::EncodeOpenResp |
( |
uint8_t * |
data, |
|
|
std::string & |
to, |
|
|
std::string & |
from, |
|
|
size_t |
size |
|
) |
| |
|
staticprivate |
int XmppProto::EncodePresence |
( |
uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
static |
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 |
int XmppProto::EncodeWhitespace |
( |
uint8_t * |
data | ) |
|
|
staticprivate |
const char * XmppProto::GetAction |
( |
XmlBase * |
doc, |
|
|
const std::string & |
str |
|
) |
| |
|
staticprivate |
const char * XmppProto::GetAsNode |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetDsNode |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetFrom |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetId |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetNode |
( |
XmlBase * |
doc, |
|
|
const std::string & |
str |
|
) |
| |
|
staticprivate |
const char * XmppProto::GetTo |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetType |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
const char * XmppProto::GetXmlns |
( |
XmlBase * |
doc | ) |
|
|
staticprivate |
int XmppProto::SetFrom |
( |
std::string & |
from, |
|
|
XmlBase * |
doc |
|
) |
| |
|
staticprivate |
int XmppProto::SetTo |
( |
std::string & |
to, |
|
|
XmlBase * |
doc |
|
) |
| |
|
staticprivate |
int XmppProto::SetXmlns |
( |
const std::string & |
from, |
|
|
XmlBase * |
doc |
|
) |
| |
|
staticprivate |
unique_ptr< XmlBase > XmppProto::open_doc_ |
|
staticprivate |
The documentation for this class was generated from the following files: