t120proto.h

Go to the documentation of this file.
00001 /*
00002  * t120proto.h
00003  *
00004  * T.120 protocol handler
00005  *
00006  * Open Phone Abstraction 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: t120proto.h,v $
00027  * Revision 2.7  2005/02/21 12:19:47  rjongbloed
00028  * Added new "options list" to the OpalMediaFormat class.
00029  *
00030  * Revision 2.6  2002/11/10 11:33:17  robertj
00031  * Updated to OpenH323 v1.10.3
00032  *
00033  * Revision 2.5  2002/09/16 02:52:35  robertj
00034  * Added #define so can select if #pragma interface/implementation is used on
00035  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00036  *
00037  * Revision 2.4  2002/09/04 06:01:47  robertj
00038  * Updated to OpenH323 v1.9.6
00039  *
00040  * Revision 2.3  2002/03/15 03:10:27  robertj
00041  * Removed unused function
00042  *
00043  * Revision 2.2  2002/02/11 09:32:12  robertj
00044  * Updated to openH323 v1.8.0
00045  *
00046  * Revision 2.1  2001/08/01 05:06:10  robertj
00047  * Major changes to H.323 capabilities, uses OpalMediaFormat for base name.
00048  *
00049  * Revision 2.0  2001/07/27 15:48:24  robertj
00050  * Conversion of OpenH323 to Open Phone Abstraction Library (OPAL)
00051  *
00052  * Revision 1.4  2002/09/16 01:14:15  robertj
00053  * Added #define so can select if #pragma interface/implementation is used on
00054  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00055  *
00056  * Revision 1.3  2002/09/03 05:44:46  robertj
00057  * Normalised the multi-include header prevention ifdef/define symbol.
00058  * Added globally accessible functions for media format name.
00059  * Added standard TCP port constant.
00060  *
00061  * Revision 1.2  2002/02/01 01:47:02  robertj
00062  * Some more fixes for T.120 channel establishment, more to do!
00063  *
00064  * Revision 1.1  2001/07/17 04:44:29  robertj
00065  * Partial implementation of T.120 and T.38 logical channels.
00066  *
00067  */
00068 
00069 #ifndef __OPAL_T120PROTO_H
00070 #define __OPAL_T120PROTO_H
00071 
00072 #ifdef P_USE_PRAGMA
00073 #pragma interface
00074 #endif
00075 
00076 
00077 #include <opal/mediafmt.h>
00078 
00079 
00080 class OpalTransport;
00081 
00082 class X224;
00083 class MCS_ConnectMCSPDU;
00084 class MCS_DomainMCSPDU;
00085 
00086 
00087 #define OPAL_T120 "T.120"
00088 
00089 
00091 
00094 class OpalT120Protocol : public PObject
00095 {
00096     PCLASSINFO(OpalT120Protocol, PObject);
00097   public:
00098     enum {
00099       DefaultTcpPort = 1503
00100     };
00101 
00106     OpalT120Protocol();
00108 
00113     virtual BOOL Originate(
00114       OpalTransport & transport
00115     );
00116 
00119     virtual BOOL Answer(
00120       OpalTransport & transport
00121     );
00122 
00127     virtual BOOL HandleConnect(
00128       const MCS_ConnectMCSPDU & pdu
00129     );
00130 
00135     virtual BOOL HandleDomain(
00136       const MCS_DomainMCSPDU & pdu
00137     );
00139 };
00140 
00141 
00142 #endif // __OPAL_T120PROTO_H
00143 
00144 

Generated on Fri Mar 7 06:33:41 2008 for OPAL by  doxygen 1.5.1