h323t120.h
Go to the documentation of this file.
/*
* h323t120.h
*
* H.323 T.120 logical channel establishment
*
* Open H323 Library
*
* Copyright (c) 2001 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Open H323 Library.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Contributor(s): ______________________________________.
*
* $Revision: 21293 $
* $Author: rjongbloed $
* $Date: 2008-10-12 18:24:41 -0500 (Sun, 12 Oct 2008) $
*/
#ifndef OPAL_T120_H323T120_H
#define OPAL_T120_H323T120_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <opal/buildopts.h>
#include <h323/h323caps.h>
class OpalT120Protocol;
class H323_T120Capability : public H323DataCapability
{
PCLASSINFO(H323_T120Capability, H323DataCapability);
public:
H323_T120Capability();
virtual PObject * Clone() const;
virtual unsigned GetSubType() const;
virtual PString GetFormatName() const;
virtual H323Channel * CreateChannel(
H323Connection & connection,
H323Channel::Directions dir,
unsigned sessionID,
const H245_H2250LogicalChannelParameters * param
) const;
virtual PBoolean OnSendingPDU(
H245_DataApplicationCapability & pdu
) const;
virtual PBoolean OnSendingPDU(
H245_DataMode & pdu
) const;
virtual PBoolean OnSendingPDU(
H245_DataProtocolCapability & pdu
) const;
virtual PBoolean OnReceivedPDU(
const H245_DataApplicationCapability & pdu
);
PBoolean GetDynamicPortCapability() const { return dynamicPortCapability; }
void SetDynamicPortCapability(PBoolean dynamic) { dynamicPortCapability = dynamic; }
protected:
PBoolean dynamicPortCapability;
};
class H323_T120Channel : public H323DataChannel
{
PCLASSINFO(H323_T120Channel, H323DataChannel);
public:
H323_T120Channel(
H323Connection & connection,
const H323Capability & capability,
Directions direction,
unsigned sessionID
);
virtual void Receive();
virtual void Transmit();
virtual PBoolean OnSendingPDU(
H245_OpenLogicalChannel & openPDU
) const;
virtual void OnSendOpenAck(
const H245_OpenLogicalChannel & open,
H245_OpenLogicalChannelAck & ack
) const;
virtual PBoolean OnReceivedPDU(
const H245_OpenLogicalChannel & pdu,
unsigned & errorCode
);
virtual PBoolean OnReceivedAckPDU(
const H245_OpenLogicalChannelAck & pdu
);
virtual void HandleChannel();
protected:
OpalT120Protocol * t120handler;
};
#endif // OPAL_T120_H323T120_H
H323Channel::connection
H323Connection & connection
Definition: channels.h:339
H323DataChannel::sessionID
unsigned sessionID
Definition: channels.h:893
H323_T120Channel::Transmit
virtual void Transmit()
H323_T120Channel::Receive
virtual void Receive()
H323_T120Capability::GetSubType
virtual unsigned GetSubType() const
H323_T120Channel::HandleChannel
virtual void HandleChannel()
H323_T120Capability::OnReceivedPDU
virtual PBoolean OnReceivedPDU(const H245_DataApplicationCapability &pdu)
OpalT120Protocol
Definition: t120proto.h:59
buildopts.h
H323_T120Capability::H323_T120Capability
H323_T120Capability()
H323Capability
Definition: h323caps.h:89
h323caps.h
H323Channel::Directions
Directions
Definition: channels.h:129
H323_T120Capability::Clone
virtual PObject * Clone() const
H323_T120Channel::OnReceivedPDU
virtual PBoolean OnReceivedPDU(const H245_OpenLogicalChannel &pdu, unsigned &errorCode)
H323_T120Capability::CreateChannel
virtual H323Channel * CreateChannel(H323Connection &connection, H323Channel::Directions dir, unsigned sessionID, const H245_H2250LogicalChannelParameters *param) const
H323_T120Channel::OnSendOpenAck
virtual void OnSendOpenAck(const H245_OpenLogicalChannel &open, H245_OpenLogicalChannelAck &ack) const
H323_T120Capability::GetFormatName
virtual PString GetFormatName() const
H323Channel::capability
H323Capability * capability
Definition: channels.h:340
H323_T120Capability::SetDynamicPortCapability
void SetDynamicPortCapability(PBoolean dynamic)
Definition: h323t120.h:154
H323Channel
Definition: channels.h:99
H323_T120Capability::dynamicPortCapability
PBoolean dynamicPortCapability
Definition: h323t120.h:158
H323DataChannel
Definition: channels.h:803
H323_T120Channel::t120handler
OpalT120Protocol * t120handler
Definition: h323t120.h:242
H323_T120Channel::H323_T120Channel
H323_T120Channel(H323Connection &connection, const H323Capability &capability, Directions direction, unsigned sessionID)
H323_T120Channel
Definition: h323t120.h:164
H323DataCapability
Definition: h323caps.h:1584
H323Connection
Definition: h323con.h:130
H323_T120Channel::OnSendingPDU
virtual PBoolean OnSendingPDU(H245_OpenLogicalChannel &openPDU) const
H323_T120Capability
Definition: h323t120.h:50
H323_T120Capability::GetDynamicPortCapability
PBoolean GetDynamicPortCapability() const
Definition: h323t120.h:149
H323_T120Capability::OnSendingPDU
virtual PBoolean OnSendingPDU(H245_DataApplicationCapability &pdu) const
H323_T120Channel::OnReceivedAckPDU
virtual PBoolean OnReceivedAckPDU(const H245_OpenLogicalChannelAck &pdu)