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.1 2007/08/06 20:50:50 shorne 00028 * First commit of h323plus 00029 * 00030 * Revision 1.4 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.3 2002/09/03 05:44:46 robertj 00035 * Normalised the multi-include header prevention ifdef/define symbol. 00036 * Added globally accessible functions for media format name. 00037 * Added standard TCP port constant. 00038 * 00039 * Revision 1.2 2002/02/01 01:47:02 robertj 00040 * Some more fixes for T.120 channel establishment, more to do! 00041 * 00042 * Revision 1.1 2001/07/17 04:44:29 robertj 00043 * Partial implementation of T.120 and T.38 logical channels. 00044 * 00045 */ 00046 00047 #ifndef __OPAL_T120PROTO_H 00048 #define __OPAL_T120PROTO_H 00049 00050 #ifdef P_USE_PRAGMA 00051 #pragma interface 00052 #endif 00053 00054 00055 #include "mediafmt.h" 00056 00057 00058 class H323Transport; 00059 00060 class X224; 00061 class MCS_ConnectMCSPDU; 00062 class MCS_DomainMCSPDU; 00063 00064 00066 00069 class OpalT120Protocol : public PObject 00070 { 00071 PCLASSINFO(OpalT120Protocol, PObject); 00072 public: 00073 enum { 00074 DefaultTcpPort = 1503 00075 }; 00076 00077 static OpalMediaFormat const MediaFormat; 00078 00079 00084 OpalT120Protocol(); 00086 00091 virtual BOOL Originate( 00092 H323Transport & transport 00093 ); 00094 00097 virtual BOOL Answer( 00098 H323Transport & transport 00099 ); 00100 00105 virtual BOOL HandleConnect( 00106 const MCS_ConnectMCSPDU & pdu 00107 ); 00108 00113 virtual BOOL HandleDomain( 00114 const MCS_DomainMCSPDU & pdu 00115 ); 00117 }; 00118 00119 00120 #endif // __OPAL_T120PROTO_H 00121 00122
1.5.2