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 1.4  2002/09/16 01:14:15  robertj
00028  * Added #define so can select if #pragma interface/implementation is used on
00029  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00030  *
00031  * Revision 1.3  2002/09/03 05:44:46  robertj
00032  * Normalised the multi-include header prevention ifdef/define symbol.
00033  * Added globally accessible functions for media format name.
00034  * Added standard TCP port constant.
00035  *
00036  * Revision 1.2  2002/02/01 01:47:02  robertj
00037  * Some more fixes for T.120 channel establishment, more to do!
00038  *
00039  * Revision 1.1  2001/07/17 04:44:29  robertj
00040  * Partial implementation of T.120 and T.38 logical channels.
00041  *
00042  */
00043 
00044 #ifndef __OPAL_T120PROTO_H
00045 #define __OPAL_T120PROTO_H
00046 
00047 #ifdef P_USE_PRAGMA
00048 #pragma interface
00049 #endif
00050 
00051 
00052 #include "mediafmt.h"
00053 
00054 
00055 class H323Transport;
00056 
00057 class X224;
00058 class MCS_ConnectMCSPDU;
00059 class MCS_DomainMCSPDU;
00060 
00061 
00063 
00066 class OpalT120Protocol : public PObject
00067 {
00068     PCLASSINFO(OpalT120Protocol, PObject);
00069   public:
00070     enum {
00071       DefaultTcpPort = 1503
00072     };
00073 
00074     static OpalMediaFormat const MediaFormat;
00075 
00076 
00081     OpalT120Protocol();
00083 
00088     virtual BOOL Originate(
00089       H323Transport & transport
00090     );
00091 
00094     virtual BOOL Answer(
00095       H323Transport & transport
00096     );
00097 
00102     virtual BOOL HandleConnect(
00103       const MCS_ConnectMCSPDU & pdu
00104     );
00105 
00110     virtual BOOL HandleDomain(
00111       const MCS_DomainMCSPDU & pdu
00112     );
00114 };
00115 
00116 
00117 #endif // __OPAL_T120PROTO_H
00118 
00119 

Generated on Thu May 18 00:24:40 2006 for OpenH323 by  doxygen 1.4.6