OPAL
Version 3.10.10
|
#include <transports.h>
Public Member Functions | |
Construction | |
OpalTransportIP (OpalEndPoint &endpoint, PIPSocket::Address binding, WORD port) | |
Operations | |
virtual OpalTransportAddress | GetLocalAddress (bool allowNAT=true) const |
virtual PBoolean | SetLocalAddress (const OpalTransportAddress &address) |
virtual OpalTransportAddress | GetRemoteAddress () const |
virtual PBoolean | SetRemoteAddress (const OpalTransportAddress &address) |
![]() | |
OpalEndPoint & | GetEndPoint () const |
PMutex & | GetWriteMutex () |
OpalTransport (OpalEndPoint &endpoint) | |
~OpalTransport () | |
void | PrintOn (ostream &strm) const |
virtual PBoolean | IsReliable () const =0 |
virtual PString | GetInterface () const |
virtual bool | SetInterface (const PString &iface) |
virtual PBoolean | Connect ()=0 |
PBoolean | ConnectTo (const OpalTransportAddress &address) |
virtual PBoolean | Close () |
void | CloseWait () |
void | CleanUpOnTermination () |
virtual PBoolean | IsCompatibleTransport (const OpalTransportAddress &address) const =0 |
Promiscious modes for transport. More... | |
virtual void | SetPromiscuous (PromisciousModes promiscuous) |
virtual OpalTransportAddress | GetLastReceivedAddress () const |
virtual PString | GetLastReceivedInterface () const |
virtual PBoolean | ReadPDU (PBYTEArray &packet)=0 |
virtual PBoolean | WritePDU (const PBYTEArray &pdu)=0 |
virtual PBoolean | WriteConnect (WriteConnectCallback function, void *userData) |
virtual void | AttachThread (PThread *thread) |
virtual PBoolean | IsRunning () const |
Protected Member Functions | |
virtual const char * | GetProtoPrefix () const =0 |
Protected Attributes | |
PIPSocket::Address | localAddress |
WORD | localPort |
PIPSocket::Address | remoteAddress |
WORD | remotePort |
![]() | |
OpalEndPoint & | endpoint |
PThread * | thread |
Thread handling the transport. More... | |
PMutex | m_writeMutex |
Additional Inherited Members | |
![]() | |
enum | PromisciousModes { AcceptFromRemoteOnly, AcceptFromAnyAutoSet, AcceptFromAny, NumPromisciousModes } |
typedef PBoolean(* | WriteConnectCallback) (OpalTransport &transport, void *userData) |
OpalTransportIP::OpalTransportIP | ( | OpalEndPoint & | endpoint, |
PIPSocket::Address | binding, | ||
WORD | port | ||
) |
Create a new transport channel.
endpoint | Endpoint object |
binding | Local interface to use |
port | Local port to bind to |
|
virtual |
Get the transport dependent name of the local endpoint.
allowNAT | Allow translation if remote needs NAT |
Implements OpalTransport.
Reimplemented in OpalTransportUDP.
|
protectedpure virtual |
Get the prefix for this transports protocol type.
Implements OpalTransport.
Implemented in OpalTransportUDP, and OpalTransportTCP.
|
virtual |
Get the transport dependent name of the remote endpoint.
Implements OpalTransport.
|
virtual |
Set local address to connect from. Note that this may not work for all transport types or may work only before Connect() has been called.
Implements OpalTransport.
Reimplemented in OpalTransportUDP.
|
virtual |
Set remote address to connect to. Note that this does not necessarily initiate a transport level connection, but only indicates where to connect to. The actual connection is made by the Connect() function.
Implements OpalTransport.
Reimplemented in OpalTransportUDP.
|
protected |
|
protected |
|
protected |
|
protected |