PTLib
Version 2.10.10
|
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 | |
![]() | |
enum | PXBlockType { PXReadBlock, PXWriteBlock, PXAcceptBlock, PXConnectBlock } |
enum | ShutdownValue { ShutdownRead = 0, ShutdownWrite = 1, ShutdownReadAndWrite = 2 } |
enum | Errors { NoError, NotFound, FileExists, DiskFull, AccessDenied, DeviceInUse, BadParameter, NoMemory, NotOpen, Timeout, Interrupted, BufferTooSmall, Miscellaneous, ProtocolFailure, NumNormalisedErrors } |
Normalised error codes. More... | |
enum | ErrorGroup { LastReadError, LastWriteError, LastGeneralError, NumErrorGroups } |
Error groups. More... | |
typedef std::vector< Slice > | VectorOfSlice |
![]() | |
static PBoolean | ConvertOSError (int libcReturnValue, Errors &lastError, int &osError) |
Convert an operating system error into platform independent error. More... | |
static PString | GetErrorText (Errors lastError, int osError=0) |
Get error message description. More... | |
![]() | |
virtual PBoolean | OnOpen () |
This callback is executed when the Open() function is called with open channels. More... | |
![]() |
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 |