32 #ifndef PTLIB_XMPP_C2S_H 33 #define PTLIB_XMPP_C2S_H 101 void SetVersion(WORD major, WORD minor);
102 void GetVersion(WORD& major, WORD& minor)
const;
155 virtual void OnClose(
Stream& stream, INT);
156 virtual void StartRegistration();
157 virtual void StartAuthNegotiation();
159 virtual void OnSessionEstablished();
160 virtual void OnSessionReleased();
161 virtual void OnElement(
PXML& pdu);
162 virtual void OnError(
PXML& pdu);
169 virtual void HandleNullState(
PXML& pdu);
170 virtual void HandleRegStartedState(
PXML& pdu);
171 virtual void HandleTLSStartedState(
PXML& pdu);
173 virtual void HandleSASLStartedState(
PXML& pdu);
175 virtual void HandleNonSASLStartedState(
PXML& pdu);
176 virtual void HandleStreamSentState(
PXML& pdu);
177 virtual void HandleBindSentState(
PXML& pdu);
178 virtual void HandleSessionSentState(
PXML& pdu);
179 virtual void HandleEstablishedState(
PXML& pdu);
235 #endif // PTLIB_XMPP_C2S_H WORD m_Port
Definition: xmpp_c2s.h:73
PNotifierList & IQHandlers()
Definition: xmpp_c2s.h:123
const PString & GetServerHost() const
Definition: xmpp_c2s.h:65
virtual PBoolean IsEstablished() const
Definition: xmpp_c2s.h:89
PMutex m_PendingIQsLock
Definition: xmpp_c2s.h:208
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
PString m_StreamID
Definition: xmpp_c2s.h:188
Class specialisation for PNotifierTemplate<INT>
WORD m_VersionMinor
Definition: xmpp_c2s.h:187
Definition: xmpp_c2s.h:216
PNotifierList & ErrorHandlers()
These notifier lists are fired when a XMPP stanza or a stream error is received.
Definition: xmpp_c2s.h:120
This class represents a XMPP stream, i.e.
Definition: xmpp.h:147
Definition: xmpp_c2s.h:219
PNotifierList m_SessionEstablishedHandlers
Definition: xmpp_c2s.h:199
PBoolean m_HasSession
Definition: xmpp_c2s.h:197
PBoolean m_NewAccount
Definition: xmpp_c2s.h:189
WORD GetServerPort() const
Definition: xmpp_c2s.h:66
const JID & GetJID() const
Definition: xmpp_c2s.h:104
non SASL authentication (JEP-0078)
Definition: xmpp_c2s.h:217
PNotifierList m_SessionReleasedHandlers
Definition: xmpp_c2s.h:200
TCPTransport(const PString &hostname)
Definition: xmpp_c2s.h:213
PNotifierList m_PresenceHandlers
Definition: xmpp_c2s.h:203
PNotifierList & PresenceHandlers()
Definition: xmpp_c2s.h:122
XMPP client to server TCP transport.
Definition: xmpp_c2s.h:56
PNotifierList m_ErrorHandlers
Definition: xmpp_c2s.h:201
StreamState
Definition: xmpp_c2s.h:211
PNotifierList & SessionEstablishedHandlers()
These notifier lists after when a client session is established (i.e.
Definition: xmpp_c2s.h:111
Definition: xmpp_c2s.h:220
BOOL PBoolean
Definition: object.h:102
PNotifierList & SessionReleasedHandlers()
Definition: xmpp_c2s.h:112
PDictionary< PString, PNotifierList > m_IQNamespaceHandlers
Definition: xmpp_c2s.h:205
PBoolean m_HasBind
Definition: xmpp_c2s.h:196
PNotifierList m_MessageHandlers
Definition: xmpp_c2s.h:202
The character string class.
Definition: pstring.h:108
StanzaList m_PendingIQs
Definition: xmpp_c2s.h:209
A socket that uses the TCP transport on the Internet Protocol.
Definition: tcpsock.h:44
static PString Empty()
Return an empty string.
WORD m_VersionMajor
Definition: xmpp_c2s.h:186
PDictionary< JID, PNotifierList > m_MessageSenderHandlers
Definition: xmpp_c2s.h:206
virtual PBoolean OnOpen()
This callback is executed when the Open() function is called with open channels.
This class handles the client side of a C2S (Client to Server) XMPP stream.
Definition: xmpp_c2s.h:81
Definition: xmpp_c2s.h:218
PNotifierList & MessageHandlers()
Definition: xmpp_c2s.h:121
Definition: xmpp_c2s.h:214
PString m_Hostname
Definition: xmpp_c2s.h:72
XMPP stanzas: the following classes represent the three stanzas (PDUs) defined by the xmpp protocol...
Definition: xmpp.h:222
This interface is the base class of each XMPP transport class.
Definition: xmpp.h:134
StreamState m_State
Definition: xmpp_c2s.h:226
PTCPSocket * m_Socket
Definition: xmpp_c2s.h:74
Definition: xmpp_c2s.h:215
PNotifierList m_IQHandlers
Definition: xmpp_c2s.h:204
Definition: notifier_ext.h:102
JID m_JID
Definition: xmpp_c2s.h:190
const PString m_Password
Definition: xmpp_c2s.h:191
virtual PBoolean Close()
Close the channel.