#include <transports.h>
Inheritance diagram for OpalTransportTCP:
Public Member Functions | |
Construction | |
OpalTransportTCP (OpalEndPoint &endpoint, PIPSocket::Address binding=INADDR_ANY, WORD port=0, BOOL reuseAddr=FALSE) | |
OpalTransportTCP (OpalEndPoint &endpoint, PTCPSocket *socket) | |
~OpalTransportTCP () | |
Destroy the TCP channel. | |
Overides from class OpalTransport | |
virtual BOOL | IsReliable () const |
virtual BOOL | IsCompatibleTransport (const OpalTransportAddress &address) const |
virtual BOOL | Connect () |
virtual BOOL | ReadPDU (PBYTEArray &pdu) |
virtual BOOL | WritePDU (const PBYTEArray &pdu) |
Protected Member Functions | |
virtual const char * | GetProtoPrefix () const |
virtual BOOL | OnOpen () |
Protected Attributes | |
BOOL | reuseAddressFlag |
|
Create a new transport channel.
|
|
|
|
Destroy the TCP channel.
|
|
Connect to the remote address. Implements OpalTransport. |
|
Get the prefix for this transports protocol type. Implements OpalTransportIP. |
|
Check that the transport address is compatible with transport. Implements OpalTransport. |
|
Get indication of the type of underlying transport. Implements OpalTransport. |
|
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 TRUE.
|
|
Read a packet from the transport. This will read using the transports mechanism for PDU boundaries, for example UDP is a single Read() call, while for TCP there is a TPKT header that indicates the size of the PDU.
Implements OpalTransport. |
|
Write a packet to the transport. This will write using the transports mechanism for PDU boundaries, for example UDP is a single Write() call, while for TCP there is a TPKT header that indicates the size of the PDU.
Implements OpalTransport. |
|
|