/usr/include/openh323/h323h224.h is in libh323plus-dev 1.24.0~dfsg2-1.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /*
* h323h224.h
*
* H.323 H.224 logical channel establishment implementation for the
* OpenH323 Project.
*
* Copyright (c) 2006 Network for Educational Technology, ETH Zurich.
* Written by Hannes Friederich.
*
* 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.
*
* Contributor(s): ______________________________________.
*
* $Id: h323h224.h,v 1.4 2011/10/20 07:07:41 shorne Exp $
*
*/
#ifndef __OPAL_H323H224_H
#define __OPAL_H323H224_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <ptlib.h>
#include <h224.h>
#include <h224handler.h>
#include <h323caps.h>
#define H323_H224_CAPABILITY_NAME "H.224"
/** This class describes the H.224 capability
*/
class H323_H224Capability : public H323DataCapability
{
PCLASSINFO(H323_H224Capability, H323DataCapability);
public:
H323_H224Capability();
~H323_H224Capability();
Comparison Compare(const PObject & obj) const;
virtual PObject * Clone() const;
virtual unsigned GetSubType() const;
virtual PString GetFormatName() const;
virtual H323Channel * CreateChannel(H323Connection & connection,
H323Channel::Directions dir,
unsigned sesionID,
const H245_H2250LogicalChannelParameters * param) const;
virtual PBoolean OnSendingPDU(H245_DataApplicationCapability & pdu) const;
virtual PBoolean OnSendingPDU(H245_DataMode & pdu) const;
virtual PBoolean OnReceivedPDU(const H245_DataApplicationCapability & pdu);
};
/** This class implements a H.224 logical channel
*/
class H323_H224Channel : public H323Channel
{
PCLASSINFO(H323_H224Channel, H323Channel);
public:
H323_H224Channel(H323Connection & connection,
const H323Capability & capability,
Directions direction,
RTP_UDP & session,
unsigned sessionID);
~H323_H224Channel();
virtual unsigned GetSessionID() const;
virtual H323Channel::Directions GetDirection() const;
virtual PBoolean SetInitialBandwidth();
virtual void Receive();
virtual void Transmit();
virtual PBoolean Open();
virtual PBoolean Start();
virtual void Close();
virtual PBoolean OnSendingPDU(H245_OpenLogicalChannel & openPDU) const;
virtual void OnSendOpenAck(const H245_OpenLogicalChannel & openPDU,
H245_OpenLogicalChannelAck & ack) const;
virtual PBoolean OnReceivedPDU(const H245_OpenLogicalChannel & pdu, unsigned & errorCode);
virtual PBoolean OnReceivedAckPDU(const H245_OpenLogicalChannelAck & pdu);
virtual PBoolean OnSendingPDU(H245_H2250LogicalChannelParameters & param) const;
virtual void OnSendOpenAck(H245_H2250LogicalChannelAckParameters & param) const;
virtual PBoolean OnReceivedPDU(const H245_H2250LogicalChannelParameters & param,
unsigned & errorCode);
virtual PBoolean OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param);
virtual PBoolean SetDynamicRTPPayloadType(int newType);
RTP_DataFrame::PayloadTypes GetDynamicRTPPayloadType() const { return rtpPayloadType; }
// virtual OpalMediaStream * GetMediaStream() const;
OpalH224Handler * GetHandler() const { return h224Handler; }
protected:
virtual PBoolean ExtractTransport(const H245_TransportAddress & pdu,
PBoolean isDataPort,
unsigned & errorCode);
unsigned sessionID;
Directions direction;
RTP_UDP & rtpSession;
H323_RTP_Session & rtpCallbacks;
OpalH224Handler *h224Handler;
RTP_DataFrame::PayloadTypes rtpPayloadType;
};
#endif // __OPAL_H323H224_H
|