|
PTLib
Version 2.14.3
|
XMPP client to server TCP transport. More...
#include <xmpp_c2s.h>


Public Member Functions | |
| TCPTransport (const PString &hostname) | |
| TCPTransport (const PString &hostname, WORD port) | |
| ~TCPTransport () | |
| const PString & | GetServerHost () const |
| WORD | GetServerPort () const |
| virtual PBoolean | Open () |
| virtual PBoolean | Close () |
| Close the channel. More... | |
Protected Attributes | |
| PString | m_Hostname |
| WORD | m_Port |
| PTCPSocket * | m_Socket |
Additional Inherited Members | |
Public Types inherited from PChannel | |
| enum | PXBlockType { PXReadBlock, PXWriteBlock, PXAcceptBlock, PXConnectBlock } |
| enum | Errors { NoError, NotFound, FileExists, DiskFull, AccessDenied, DeviceInUse, BadParameter, NoMemory, NotOpen, Timeout, Interrupted, BufferTooSmall, Miscellaneous, ProtocolFailure, Unavailable, NumNormalisedErrors } |
| Normalised error codes. More... | |
| enum | ErrorGroup { LastReadError, LastWriteError, LastGeneralError, NumErrorGroups } |
| Error groups. More... | |
| typedef PNotifierTemplate < PChannel::AsyncContext & > | AsyncNotifier |
| enum | ShutdownValue { ShutdownRead = 0, ShutdownWrite = 1, ShutdownReadAndWrite = 2 } |
Static Public Member Functions inherited from PChannel | |
| static PString | GetErrorText (Errors lastError, int osError=0) |
| Get error message description. More... | |
Static Public Member Functions inherited from PObject | |
| static const char * | Class () |
| Get the name of the class as a C string. More... | |
| static __inline const PObject * | PTraceObjectInstance (const char *) |
| static __inline const PObject * | PTraceObjectInstance (const PObject *obj) |
| static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
| Internal function caled from CompareObjectMemoryDirect() More... | |
Protected Member Functions inherited from PIndirectChannel | |
| virtual PBoolean | OnOpen () |
| This callback is executed when the Open() function is called with open channels. More... | |
Friends inherited from PObject | |
XMPP client to server TCP transport.
| XMPP::C2S::TCPTransport::TCPTransport | ( | const PString & | hostname | ) |
| XMPP::C2S::TCPTransport::TCPTransport | ( | const PString & | hostname, |
| WORD | port | ||
| ) |
| XMPP::C2S::TCPTransport::~TCPTransport | ( | ) |
|
virtual |
Close the channel.
This will detach itself from the read and write channels and delete both of them if they are auto delete.
Implements XMPP::Transport.
|
inline |
References m_Hostname.
|
inline |
References m_Port.
|
virtual |
Implements XMPP::Transport.
|
protected |
Referenced by GetServerHost().
|
protected |
Referenced by GetServerPort().
|
protected |