D:/Storage/CVS_Head/h323plus/include/h341/h341.h

00001 /* h341.h
00002  *
00003  * Copyright (c) 2007 ISVO (Asia) Pte Ltd. All Rights Reserved.
00004  *
00005  * The contents of this file are subject to the Mozilla Public License
00006  * Version 1.1 (the "License"); you may not use this file except in
00007  * compliance with the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Alternatively, the contents of this file may be used under the terms
00011  * of the General Public License (the  "GNU License"), in which case the
00012  * provisions of GNU License are applicable instead of those
00013  * above. If you wish to allow use of your version of this file only
00014  * under the terms of the GNU License and not to allow others to use
00015  * your version of this file under the MPL, indicate your decision by
00016  * deleting the provisions above and replace them with the notice and
00017  * other provisions required by the GNU License. If you do not delete
00018  * the provisions above, a recipient may use your version of this file
00019  * under either the MPL or the GNU License."
00020  *
00021  * Software distributed under the License is distributed on an "AS IS"
00022  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00023  * the License for the specific language governing rights and limitations
00024  * under the License.
00025  *
00026  * The Original Code is derived from and used in conjunction with the 
00027  * h323plus library (www.h323plus.org/)
00028  *
00029  * The Initial Developer of the Original Code is ISVO (Asia) Pte Ltd.
00030  *
00031  *
00032  * Contributor(s): ______________________________________.
00033  *
00034  * $Log: h341.h,v $
00035  * Revision 1.1  2007/08/06 20:50:50  shorne
00036  * First commit of h323plus
00037  *
00038  * Revision 1.1.2.1  2007/08/02 20:11:58  shorne
00039  * Added H.341 Support
00040  *
00041  *
00042  *
00043  */
00044 
00045 #pragma once
00046 
00047 #if !P_SNMP
00048     #undef H323_H341
00049     #pragma message("H341 disabled due to missing SNMP Support")
00050 #else
00051    #define H323_H341 1
00052 #endif
00053 
00054 #ifdef H323_H341
00055 
00056 #include <ptclib/psnmp.h>
00057 
00058 class H323_H341Server : public PSNMPServer
00059 {
00060   public:
00061     H323_H341Server(WORD listenport = 161);
00062     ~H323_H341Server();
00063 
00064    enum messagetype {
00065      e_request,
00066      e_nextrequest,
00067      e_set
00068    };
00069  
00070     // Inherited from PSNMPServer
00071     BOOL OnGetRequest     (PINDEX reqID, PSNMP::BindingList & vars, PSNMP::ErrorType & errCode);
00072     BOOL OnGetNextRequest (PINDEX reqID, PSNMP::BindingList & vars, PSNMP::ErrorType & errCode);
00073     BOOL OnSetRequest     (PINDEX reqID, PSNMP::BindingList & vars, PSNMP::ErrorType & errCode);
00074 
00075     //Events
00076     virtual BOOL Authorise(const PIPSocket::Address & /*received*/) {};
00077 
00078         virtual BOOL OnRequest(H323_H341Server::messagetype /*msgtype*/, 
00079                                               PSNMP::BindingList & /*vars*/,
00080                                                                 PSNMP::ErrorType & /*errCode*/) {};
00081 
00082 
00083   protected:
00084 
00085 };
00086 
00087 
00088 
00089 #endif

Generated on Thu Oct 25 13:42:27 2007 for h323plus by  doxygen 1.5.2