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  * $Revision: 19279 $
00027  * $Author: rjongbloed $
00028  * $Date: 2008-01-17 04:08:34 +0000 (Thu, 17 Jan 2008) $
00029  */
00030 
00031 #ifndef __OPAL_T120PROTO_H
00032 #define __OPAL_T120PROTO_H
00033 
00034 #ifdef P_USE_PRAGMA
00035 #pragma interface
00036 #endif
00037 
00038 
00039 #include <opal/mediafmt.h>
00040 
00041 
00042 class OpalTransport;
00043 
00044 class X224;
00045 class MCS_ConnectMCSPDU;
00046 class MCS_DomainMCSPDU;
00047 
00048 
00049 #define OPAL_T120 "T.120"
00050 
00051 
00053 
00056 class OpalT120Protocol : public PObject
00057 {
00058     PCLASSINFO(OpalT120Protocol, PObject);
00059   public:
00060     enum {
00061       DefaultTcpPort = 1503
00062     };
00063 
00068     OpalT120Protocol();
00070 
00075     virtual PBoolean Originate(
00076       OpalTransport & transport
00077     );
00078 
00081     virtual PBoolean Answer(
00082       OpalTransport & transport
00083     );
00084 
00089     virtual PBoolean HandleConnect(
00090       const MCS_ConnectMCSPDU & pdu
00091     );
00092 
00097     virtual PBoolean HandleDomain(
00098       const MCS_DomainMCSPDU & pdu
00099     );
00101 };
00102 
00103 
00104 #endif // __OPAL_T120PROTO_H
00105 
00106 

Generated on Mon Sep 15 11:49:15 2008 for OPAL by  doxygen 1.5.1