OPAL
Version 3.10.4
|
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 * $Revision: 24178 $ 00027 * $Author: rjongbloed $ 00028 * $Date: 2010-04-05 19:10:56 -0500 (Mon, 05 Apr 2010) $ 00029 */ 00030 00031 #ifndef OPAL_T120_T120PROTO_H 00032 #define OPAL_T120_T120PROTO_H 00033 00034 #ifdef P_USE_PRAGMA 00035 #pragma interface 00036 #endif 00037 00038 #include <opal/buildopts.h> 00039 00040 #if OPAL_T120DATA 00041 00042 #include <opal/mediafmt.h> 00043 00044 00045 class OpalTransport; 00046 00047 class X224; 00048 class MCS_ConnectMCSPDU; 00049 class MCS_DomainMCSPDU; 00050 00051 00052 #define OPAL_T120 "T.120" 00053 00054 00056 00059 class OpalT120Protocol : public PObject 00060 { 00061 PCLASSINFO(OpalT120Protocol, PObject); 00062 public: 00063 enum { 00064 DefaultTcpPort = 1503 00065 }; 00066 00071 OpalT120Protocol(); 00073 00078 virtual PBoolean Originate( 00079 OpalTransport & transport 00080 ); 00081 00084 virtual PBoolean Answer( 00085 OpalTransport & transport 00086 ); 00087 00092 virtual PBoolean HandleConnect( 00093 const MCS_ConnectMCSPDU & pdu 00094 ); 00095 00100 virtual PBoolean HandleDomain( 00101 const MCS_DomainMCSPDU & pdu 00102 ); 00104 }; 00105 00106 00107 #endif // OPAL_T120DATA 00108 00109 #endif // OPAL_T120_T120PROTO_H 00110 00111