This class describes the interface to a capability of the endpoint, usually a codec, used to transfer data via the logical channels opened and managed by the H323 control channel.
![]() | Construction |
![]() | Overrides from class PObject |
![]() | Identification functions |
![]() | Operations |
![]() | Protocol manipulation |
![]() | Member variable access |
![]() | capabilityDirection Unique ID assigned to capability |
This class describes the interface to a capability of the endpoint, usually a codec, used to transfer data via the logical channels opened and managed by the H323 control channel.Note that this is not an instance of the codec itself. Merely the description of that codec. There is typically only one instance of this class contained in the capability tables of the endpoint. There may be several instances of the actualy codec managing the conversion of an individual stream of data.
An application may create a descendent off this class and override functions as required for describing a codec that it implements.
void PrintOn(ostream & strm) const
This function is overridden by one of the three main sub-classes off which real capabilities would be descendend.
e_Video
e_Data
virtual PString GetFormatName() const
The default behaviour returns zero, indicating it is not an RTP
based capability.
This will also be the desired number that will be sent by most codec
implemetations. The default behaviour does nothing.
The default behaviour returns the value 1.
The default behaviour returns the value 1.
virtual unsigned GetDefaultSessionID() const
virtual void SetTxFramesInPacket( unsigned frames )
virtual unsigned GetTxFramesInPacket() const
virtual unsigned GetRxFramesInPacket() const
virtual H323Channel* CreateChannel( H323Connection & connection, H323Channel::Directions dir, unsigned sessionID, const H245_H2250LogicalChannelParameters * param ) const
dir - Direction of channel
sessionID - Session ID for RTP channel
param - Parameters for channelvirtual H323Codec* CreateCodec( H323Codec::Direction direction ) const
The default behaviour is pure.
The default behaviour is pure.
If the function returns FALSE then the received PDU codec description
is not supported, so will be ignored. The default behaviour sets the capabilityDirection member variable
from the PDU and then returns TRUE. Note that this means it is very
important to call the ancestor function when overriding.
The default behaviour is pure.
virtual BOOL OnSendingPDU( H245_DataType & pdu ) const
virtual BOOL OnReceivedPDU( const H245_Capability & pdu )
virtual BOOL OnReceivedPDU( const H245_DataType & pdu, BOOL receiver )
receiver - Is receiver OLCvirtual BOOL IsNonStandardMatch( const H245_NonStandardParameter & param ) const
void SetCapabilityDirection( CapabilityDirection dir )
unsigned GetCapabilityNumber() const
void SetCapabilityNumber(unsigned num)
Alphabetic index HTML hierarchy of classes or Java