h323t120.h

Go to the documentation of this file.
00001 /*
00002  * h323t120.h
00003  *
00004  * H.323 T.120 logical channel establishment
00005  *
00006  * Open H323 Library
00007  *
00008  * Copyright (c) 2001 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Open H323 Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Contributor(s): ______________________________________.
00025  *
00026  * $Log: h323t120.h,v $
00027  * Revision 1.8  2005/11/30 13:05:01  csoutheren
00028  * Changed tags for Doxygen
00029  *
00030  * Revision 1.7  2002/09/16 01:14:15  robertj
00031  * Added #define so can select if #pragma interface/implementation is used on
00032  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00033  *
00034  * Revision 1.6  2002/09/03 06:19:37  robertj
00035  * Normalised the multi-include header prevention ifdef/define symbol.
00036  *
00037  * Revision 1.5  2002/08/05 10:03:47  robertj
00038  * Cosmetic changes to normalise the usage of pragma interface/implementation.
00039  *
00040  * Revision 1.4  2002/05/10 05:47:37  robertj
00041  * Added session ID to the data logical channel class.
00042  *
00043  * Revision 1.3  2002/02/01 01:46:50  robertj
00044  * Some more fixes for T.120 channel establishment, more to do!
00045  *
00046  * Revision 1.2  2002/01/09 00:21:36  robertj
00047  * Changes to support outgoing H.245 RequstModeChange.
00048  *
00049  * Revision 1.1  2001/07/17 04:44:29  robertj
00050  * Partial implementation of T.120 and T.38 logical channels.
00051  *
00052  */
00053 
00054 #ifndef __OPAL_H323T120_H
00055 #define __OPAL_H323T120_H
00056 
00057 #ifdef P_USE_PRAGMA
00058 #pragma interface
00059 #endif
00060 
00061 
00062 #include "h323caps.h"
00063 #include "channels.h"
00064 
00065 
00066 class OpalT120Protocol;
00067 
00068 
00070 
00073 class H323_T120Capability : public H323DataCapability
00074 {
00075     PCLASSINFO(H323_T120Capability, H323DataCapability);
00076   public:
00081     H323_T120Capability();
00083 
00088     virtual PObject * Clone() const;
00090 
00099     virtual unsigned GetSubType() const;
00100 
00103     virtual PString GetFormatName() const;
00105 
00110     virtual H323Channel * CreateChannel(
00111       H323Connection & connection,    
00112       H323Channel::Directions dir,    
00113       unsigned sessionID,             
00114       const H245_H2250LogicalChannelParameters * param
00116     ) const;
00118 
00129     virtual BOOL OnSendingPDU(
00130       H245_DataApplicationCapability & pdu
00131     ) const;
00132 
00141     virtual BOOL OnSendingPDU(
00142       H245_DataMode & pdu  
00143     ) const;
00144 
00151     virtual BOOL OnSendingPDU(
00152       H245_DataProtocolCapability & pdu  
00153     ) const;
00154 
00162     virtual BOOL OnReceivedPDU(
00163       const H245_DataApplicationCapability & pdu  
00164     );
00166 
00172     BOOL GetDynamicPortCapability() const { return dynamicPortCapability; }
00173 
00177     void SetDynamicPortCapability(BOOL dynamic) { dynamicPortCapability = dynamic; }
00179 
00180   protected:
00181     BOOL dynamicPortCapability;
00182 };
00183 
00184 
00187 class H323_T120Channel : public H323DataChannel
00188 {
00189     PCLASSINFO(H323_T120Channel, H323DataChannel);
00190   public:
00195     H323_T120Channel(
00196       H323Connection & connection,        
00197       const H323Capability & capability,  
00198       Directions direction,               
00199       unsigned sessionID                  
00200     );
00202 
00212     virtual void Receive();
00213 
00222     virtual void Transmit();
00223 
00226     virtual BOOL OnSendingPDU(
00227       H245_OpenLogicalChannel & openPDU  
00228     ) const;
00229 
00233     virtual void OnSendOpenAck(
00234       const H245_OpenLogicalChannel & open,   
00235       H245_OpenLogicalChannelAck & ack        
00236     ) const;
00237 
00245     virtual BOOL OnReceivedPDU(
00246       const H245_OpenLogicalChannel & pdu,    
00247       unsigned & errorCode                    
00248     );
00249 
00257     virtual BOOL OnReceivedAckPDU(
00258       const H245_OpenLogicalChannelAck & pdu 
00259     );
00261 
00262     virtual void HandleChannel();
00263 
00264   protected:
00265     OpalT120Protocol * t120handler;
00266 };
00267 
00268 
00269 #endif // __OPAL_H323T120_H
00270 
00271 

Generated on Wed Feb 6 09:02:38 2008 for OpenH323 by  doxygen 1.5.4