PTLib  Version 2.10.4
XMPP::C2S::TCPTransport Class Reference

XMPP client to server TCP transport. More...

#include <xmpp_c2s.h>

Inheritance diagram for XMPP::C2S::TCPTransport:
XMPP::Transport PIndirectChannel PChannel PObject

List of all members.

Public Member Functions

 TCPTransport (const PString &hostname)
 TCPTransport (const PString &hostname, WORD port)
 ~TCPTransport ()
const PStringGetServerHost () const
WORD GetServerPort () const
virtual PBoolean Open ()
virtual PBoolean Close ()
 Close the channel.

Protected Attributes

PString m_Hostname
WORD m_Port
PTCPSocketm_Socket

Detailed Description

XMPP client to server TCP transport.


Constructor & Destructor Documentation

XMPP::C2S::TCPTransport::TCPTransport ( const PString hostname,
WORD  port 
)

Member Function Documentation

Close the channel.

This will detach itself from the read and write channels and delete both of them if they are auto delete.

Returns:
true if the channel is closed.

Implements XMPP::Transport.

References m_Hostname.

WORD XMPP::C2S::TCPTransport::GetServerPort ( ) const [inline]

References m_Port.

virtual PBoolean XMPP::C2S::TCPTransport::Open ( ) [virtual]

Implements XMPP::Transport.


Member Data Documentation

Referenced by GetServerPort().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines