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

📄 taoadaptor.h

📁 基于sipfoundy 公司开发的sipx协议API
💻 H
字号:
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$//////////////////////////////////////////////////////////////////////////////#ifndef _TaoAdaptor_h_#define _TaoAdaptor_h_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000// SYSTEM INCLUDES// APPLICATION INCLUDES#include "os/OsServerTask.h"#include "tao/TaoListenerManager.h"#include "tao/TaoMessage.h"//#include "tao/TaoReference.h"//#include "TaoDefs.h"  // Added by ClassView// DEFINES// MACROS// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// CONSTANTS// STRUCTS// TYPEDEFS// FORWARD DECLARATIONS//! Abstract event handler for processing call management event/*! This object must be sub-classed to implement the handleMessage * method that will process the incoming call manager events. */class TaoAdaptor : public OsServerTask{/* //////////////////////////// PUBLIC //////////////////////////////////// */public:/* ============================ CREATORS ================================== */        TaoAdaptor(const UtlString& name = "TaoAdaptor-%d",                                const int maxRequestQMsgs=DEF_MAX_MSGS);         //:Constructor        TaoAdaptor(const TaoAdaptor& rTaoAdaptor);     //:Copy constructor (not implemented for this class)        virtual ~TaoAdaptor();/* ============================ MANIPULATORS ============================== */         //!Handle an incoming message.         /*! If the message is not one that the object is prepared to process,          * the handleMessage() method in the derived class should return FALSE          * which will cause the OsServerTask::handleMessage() method to be          * invoked on the message.      */        virtual UtlBoolean handleMessage(OsMsg& rMsg);        virtual void setListenerManager(TaoListenerManager*& rpListenerMgr)                        { mpListenerMgr = rpListenerMgr; };        virtual void parseMessage(TaoMessage& rMsg);         //:Parse the incoming message.        virtual OsStatus setErrno(int errno);         //:Set the errno status for the task         // This call has no effect under Windows NT and, if the task has been         // started, will always returns OS_SUCCESS/* //////////////////////////// PROTECTED //////////////////////////////////// */protected:        unsigned char   mCmd;        TaoObjHandle    mMsgID;        TaoObjHandle    mObjId;        TaoObjHandle    mClientSocket;        UtlString               mArgList;        int                             mArgCnt;        TaoListenerManager*     mpListenerMgr;private:};#endif // _TaoAdaptor_h_

⌨️ 快捷键说明

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