#include <transports.h>
Public Member Functions | |
OpalTransportTCPS (OpalEndPoint &endpoint, PIPSocket::Address binding=PIPSocket::GetDefaultIpAny(), WORD port=0, PBoolean reuseAddr=PFalse) | |
OpalTransportTCPS (OpalEndPoint &endpoint, PTCPSocket *socket) | |
~OpalTransportTCPS () | |
Destroy the TCPS channel. | |
PBoolean | IsCompatibleTransport (const OpalTransportAddress &address) const |
PBoolean | Connect () |
PBoolean | OnOpen () |
const char * | GetProtoPrefix () const |
Protected Attributes | |
PSSLContext * | sslContext |
OpalTransportTCPS::OpalTransportTCPS | ( | OpalEndPoint & | endpoint, | |
PIPSocket::Address | binding = PIPSocket::GetDefaultIpAny() , |
|||
WORD | port = 0 , |
|||
PBoolean | reuseAddr = PFalse | |||
) |
endpoint | Endpoint object | |
binding | Local interface to use | |
port | Local port to bind to | |
reuseAddr | Flag for binding to already bound interface |
OpalTransportTCPS::OpalTransportTCPS | ( | OpalEndPoint & | endpoint, | |
PTCPSocket * | socket | |||
) |
endpoint | Endpoint object | |
socket | Socket to use |
OpalTransportTCPS::~OpalTransportTCPS | ( | ) |
Destroy the TCPS channel.
PBoolean OpalTransportTCPS::Connect | ( | ) | [virtual] |
Connect to the remote address.
Reimplemented from OpalTransportTCP.
const char* OpalTransportTCPS::GetProtoPrefix | ( | ) | const [virtual] |
Get the prefix for this transports protocol type.
Reimplemented from OpalTransportTCP.
PBoolean OpalTransportTCPS::IsCompatibleTransport | ( | const OpalTransportAddress & | address | ) | const [virtual] |
Check that the transport address is compatible with transport.
Reimplemented from OpalTransportTCP.
PBoolean OpalTransportTCPS::OnOpen | ( | ) | [virtual] |
This callback is executed when the Open() function is called with open channels. It may be used by descendent channels to do any handshaking required by the protocol that channel embodies.
The default behaviour is to simply return PTrue.
Reimplemented from OpalTransportTCP.
PSSLContext* OpalTransportTCPS::sslContext [protected] |