OPAL  Version 3.10.4
OpalH224Handler Class Reference

#include <h224handler.h>

Public Types

enum  {
  Broadcast = 0x0000, CMEClientListCode = 0x01, CMEExtraCapabilitiesCode = 0x02, CMEMessage = 0x00,
  CMECommand = 0xff, CountryCodeEscape = 0xff
}

Public Member Functions

 OpalH224Handler ()
 ~OpalH224Handler ()
PBoolean AddClient (OpalH224Client &client)
PBoolean RemoveClient (OpalH224Client &client)
void SetTransmitMediaFormat (const OpalMediaFormat &mediaFormat)
void SetReceiveMediaFormat (const OpalMediaFormat &mediaFormat)
void SetTransmitMediaStream (OpalH224MediaStream *transmitMediaStream)
virtual void StartTransmit ()
virtual void StopTransmit ()
PBoolean SendClientList ()
PBoolean SendExtraCapabilities ()
PBoolean SendClientListCommand ()
PBoolean SendExtraCapabilitiesCommand (const OpalH224Client &client)
PBoolean SendExtraCapabilitiesMessage (const OpalH224Client &client, BYTE *data, PINDEX length)
PBoolean TransmitClientFrame (const OpalH224Client &client, H224_Frame &frame)
PBoolean HandleFrame (const RTP_DataFrame &rtpFrame)
virtual PBoolean OnReceivedFrame (H224_Frame &frame)
virtual PBoolean OnReceivedCMEMessage (H224_Frame &frame)
virtual PBoolean OnReceivedClientList (H224_Frame &frame)
virtual PBoolean OnReceivedClientListCommand ()
virtual PBoolean OnReceivedExtraCapabilities (H224_Frame &frame)
virtual PBoolean OnReceivedExtraCapabilitiesCommand ()
PMutex & GetTransmitMutex ()

Protected Attributes

PMutex transmitMutex
PBoolean canTransmit
RTP_DataFrame transmitFrame
BYTE transmitBitIndex
PTime * transmitStartTime
OpalH224MediaStreamtransmitMediaStream
H224_Frame receiveFrame
OpalH224ClientList clients

Member Enumeration Documentation

anonymous enum
Enumerator:
Broadcast 
CMEClientListCode 
CMEExtraCapabilitiesCode 
CMEMessage 
CMECommand 
CountryCodeEscape 

Constructor & Destructor Documentation


Member Function Documentation

Adds / removes the client from the client list

PMutex& OpalH224Handler::GetTransmitMutex ( ) [inline]

References transmitMutex.

PBoolean OpalH224Handler::HandleFrame ( const RTP_DataFrame rtpFrame)
virtual PBoolean OpalH224Handler::OnReceivedClientList ( H224_Frame frame) [virtual]
virtual PBoolean OpalH224Handler::OnReceivedClientListCommand ( ) [virtual]
virtual PBoolean OpalH224Handler::OnReceivedCMEMessage ( H224_Frame frame) [virtual]
virtual PBoolean OpalH224Handler::OnReceivedExtraCapabilities ( H224_Frame frame) [virtual]
virtual PBoolean OpalH224Handler::OnReceivedFrame ( H224_Frame frame) [virtual]

Sends the complete client list with all clients registered

Requests the remote side to send it's client list

Sends the extra capabilities for all clients that indicate to have extra capabilities.

Request the remote side to send the extra capabilities for the given client

PBoolean OpalH224Handler::SendExtraCapabilitiesMessage ( const OpalH224Client client,
BYTE *  data,
PINDEX  length 
)

Callback for H.224 clients to send their extra capabilities

Sets the transmit / receive media format

Sets / unsets the transmit H224 media stream

virtual void OpalH224Handler::StartTransmit ( ) [virtual]
virtual void OpalH224Handler::StopTransmit ( ) [virtual]
PBoolean OpalH224Handler::TransmitClientFrame ( const OpalH224Client client,
H224_Frame frame 
)

Callback for H.224 clients to send a client frame


Field Documentation

PBoolean OpalH224Handler::canTransmit [protected]
OpalH224ClientList OpalH224Handler::clients [protected]
PMutex OpalH224Handler::transmitMutex [protected]

Referenced by GetTransmitMutex().


The documentation for this class was generated from the following file: