⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mhtypes.h

📁 一个SIP协议栈
💻 H
字号:
#ifndef __MHTYPES_H#define __MHTYPES_H/********************************************************************* $Id: mhtypes.h,v 1.3 1999/08/31 02:32:01 cullen Exp $ *********************************************************************  This library is free software; you can redistribute it and/or modify  it under the terms of the GNU Lesser General Public License as  published by the Free Software Foundation; either version 2 of the  License, or (at your option) any later version.  In addition to the  terms and conditions set forth in the GNU Lesser General Public  License, as a condition of using this library you are required to  grant to all users of this library or any implementation utilizing  or derived from this library a reciprocal, no cost, worldwide,  perpetual, non-exclusive, non-transferable, unrestricted license to  your claims of all patents and patent applications throughout the  world that are infringed by the library or any implementation  utilizing or derived from this library.  In the event you  redistribute this library or any implementation utilizing or derived  from this library, you must prominently display the foregoing terms  and conditions with the library or the implementation utilizing or  derived from this library.   In the event of a conflict of terms between the foregoing license  grant and the terms set forth in the GNU Lesser General Public  License, the foregoing terms and conditions shall be deemed to  govern.   This library is distributed in the hope that it will be useful, but  WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  Lesser General Public License for more details.   You should have received a copy of the GNU Lesser General Public  License along with this library; if not; write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.   Copyright 1999 Vovida Networks, Inc.  All Rights Reserved. ********************************************************************* $Log: mhtypes.h,v $ Revision 1.3  1999/08/31 02:32:01  cullen removed some unused stuff Revision 1.2  1999/08/31 02:22:05  cullen updated header **********************************************************************/namespace mh323{    // Each class used in mh323 is declared here as well as pointer to it    // For example: "class Call; typedef Call* PCall;"#define MHDECLARE_CLASS(name) class name; typedef name *P##name    MHDECLARE_CLASS(AbstractCall);    MHDECLARE_CLASS(ControlledCall);    MHDECLARE_CLASS(QuickConnectCall);    MHDECLARE_CLASS(BasicCall);    MHDECLARE_CLASS(Call);    MHDECLARE_CLASS(EndPoint);    MHDECLARE_CLASS(RTPChannel);    MHDECLARE_CLASS(RTPSource);    MHDECLARE_CLASS(RTPDestination);    MHDECLARE_CLASS(CodecInfo);    MHDECLARE_CLASS(SignalPDU);    MHDECLARE_CLASS(ControlPDU);    MHDECLARE_CLASS(Thread);    MHDECLARE_CLASS(Mutex);    MHDECLARE_CLASS(TCPSocket);    MHDECLARE_CLASS(IPAddress);    MHDECLARE_CLASS(Codec);#undef MHDECLARE_CLASS    // Return value for all event handlers    enum EVH_Result    {        EVH_OK,        EVH_CANCEL, // Cancel current procedure        EVH_EXIT,    // Terminate the call        EVH_DROP    // Drop the call    };    // Open Mode constants    typedef unsigned OpenMode;    const unsigned OM_DEFAULT           = 0;    // If OM_SYNCHRONOUS is set 'open' method does not return,    // 'makeCall' returns only when call is completed    const unsigned OM_SYNCHRONOUS       = 1 << 0;    // If OM_USE_EXCEPTIONS is set exceptions will be generated so    // that user can process errors. If not set - interface functions will    // only return 'false' for errors.    // This flag does not affect any exceptions different from MHError    const unsigned OM_NO_FASTCONNECT    = 1 << 1;    const unsigned OM_NO_TUNNELING      = 1 << 2;    typedef long  TimeInterval;    enum TerminalType    {        TT_SET = 40,        TT_TERMINALONLY = 50,        TT_TERMINALANDMC = 70,        TT_GATEWAYONLY = 60,        TT_GATEWAYANDMC = 80,        TT_GATEWAYANDMCWITHDATAMP = 90,        TT_GATEWAYANDMCWITHAUDIOMP = 100,        TT_GATEWAYANDMCWITHAVMP = 110,        TT_GATEKEEPERONLY = 120,        TT_GATEKEEPERWITHDATAMP = 130,        TT_GATEKEEPERWITHAUDIOMP = 140,        TT_GATEKEEPERWITHAVMP = 150,        TT_MCUONLY = 160,        TT_MCUWITHDATAMP = 170,        TT_MCUWITHAUDIOMP = 180,        TT_MCUWITHAVMP = 190    };    enum TimerChoice    {        TC_SETUP=0,        TC_ESTABLISHMENT=1,        TC_MASTERSLAVEDETERMINATION=2,        TC_CAPABILITYEXCHANGE=3,        TC_LOGICALCHANNEL=4,        TC_ROUNDTRIPDELAY=5 //must be last    };}#endif //__MHTYPES_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -