#include <h323caps.h>
Inheritance diagram for H323_GSM0610Capability:
Public Member Functions | |
Construction | |
H323_GSM0610Capability () | |
Overrides from class PObject | |
virtual PObject * | Clone () const |
Identification functions | |
virtual unsigned | GetSubType () const |
virtual PString | GetFormatName () const |
virtual void | SetTxFramesInPacket (unsigned frames) |
Protocol manipulation | |
virtual BOOL | OnSendingPDU (H245_AudioCapability &pdu, unsigned packetSize) const |
virtual BOOL | OnReceivedPDU (const H245_AudioCapability &pdu, unsigned &packetSize) |
H323_GSM0610Capability::H323_GSM0610Capability | ( | ) |
Create a new GSM 06.10 capability.
virtual PObject* H323_GSM0610Capability::Clone | ( | ) | const [virtual] |
Create a copy of the object.
virtual PString H323_GSM0610Capability::GetFormatName | ( | ) | const [virtual] |
Get the name of the media data format this class represents.
Implements H323Capability.
virtual unsigned H323_GSM0610Capability::GetSubType | ( | ) | const [virtual] |
Get the sub-type of the capability. This is a code dependent on the main type of the capability.
This returns one of the four possible combinations of mode and speed using the enum values of the protocol ASN H245_AudioCapability class.
Implements H323Capability.
virtual BOOL H323_GSM0610Capability::OnReceivedPDU | ( | const H245_AudioCapability & | pdu, | |
unsigned & | packetSize | |||
) | [virtual] |
This function is called whenever and incoming TerminalCapabilitySet or OpenLogicalChannel PDU has been used to construct the control channel. It allows the capability to set from the PDU fields, information in members specific to the class.
The default behaviour gets the data rate field from the PDU.
pdu | PDU to get information from |
packetSize | Packet size to use in capability |
Reimplemented from H323AudioCapability.
virtual BOOL H323_GSM0610Capability::OnSendingPDU | ( | H245_AudioCapability & | pdu, | |
unsigned | packetSize | |||
) | const [virtual] |
This function is called whenever and outgoing TerminalCapabilitySet or OpenLogicalChannel PDU is being constructed for the control channel. It allows the capability to set the PDU fields from information in members specific to the class.
The default behaviour sets the data rate field in the PDU.
pdu | PDU to set information on |
packetSize | Packet size to use in capability |
Reimplemented from H323AudioCapability.
virtual void H323_GSM0610Capability::SetTxFramesInPacket | ( | unsigned | frames | ) | [virtual] |
Set the maximum size (in frames) of data that will be transmitted in a single PDU.
This will also be the desired number that will be sent by most codec implemetations.
The default behaviour sets the txFramesInPacket variable.
frames | Number of frames per packet |
Reimplemented from H323AudioCapability.