# 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: 21004 $
    00027  * $Author: rjongbloed $
    00028  * $Date: 2008-09-16 07:08:56 +0000 (Tue, 16 Sep 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 #include <opal/buildopts.h>
    00039
    00040 #include <opal/mediafmt.h>
    00041
    00042
    00043 class OpalTransport;
    00044
    00045 class X224;
    00046 class MCS_ConnectMCSPDU;
    00047 class MCS_DomainMCSPDU;
    00048
    00049
    00050 #define OPAL_T120 "T.120"
    00051
    00052
    00054
    00057 class OpalT120Protocol : public PObject
    00058 {
    00059     PCLASSINFO(OpalT120Protocol, PObject);
    00060   public:
    00061     enum {
    00062       DefaultTcpPort = 1503
    00063     };
    00064
    00069     OpalT120Protocol();
    00071
    00076     virtual PBoolean Originate(
    00077       OpalTransport & transport
    00078     );
    00079
    00082     virtual PBoolean Answer(
    00083       OpalTransport & transport
    00084     );
    00085
    00090     virtual PBoolean HandleConnect(
    00091       const MCS_ConnectMCSPDU & pdu
    00092     );
    00093
    00098     virtual PBoolean HandleDomain(
    00099       const MCS_DomainMCSPDU & pdu
    00100     );
    00102 };
    00103
    00104
    00105 #endif // __OPAL_T120PROTO_H
    00106
    00107