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

📄 rpcifserver.h

📁 VXWORKS源代码
💻 H
字号:
/* RpcIfServer -- Rpc Interface Server (either DCE or ORPC) *//* Copyright (c) 1999 Wind River Systems, Inc. *//*modification history--------------------01j,19jul01,dbs  fix include path of vxdcomGlobals.h01i,19jan00,nel  Modifications for Linux debug build01h,20sep99,aim  added ThreadName parameter01g,13aug99,aim  changed min/max thread params01f,12aug99,aim  ThreadPool API changes01e,30jul99,aim  added thread pooling01d,15jul99,aim  added serverAddress01c,09jul99,dbs  use final filenames01b,08jun99,aim  rework01a,27may99,aim  created*/#ifndef __INCRpcIfServer_h#define __INCRpcIfServer_h#include "ReactorTypes.h"#include "Acceptor.h"#include "SockAcceptor.h"#include "INETSockAddr.h"#include "RpcEventHandler.h"#include "Reactor.h"#include "RpcDispatcher.h"#include "RpcStringBinding.h"#include "ThreadPool.h"#include "private/vxdcomGlobals.h"#if (defined VXDCOM_PLATFORM_WIN32 || defined VXDCOM_PLATFORM_VXWORKS)typedef Acceptor <RpcEventHandler, SockAcceptor, INETSockAddr> RpcServer;#elif (defined VXDCOM_PLATFORM_SOLARIS || defined VXDCOM_PLATFORM_LINUX)typedef Acceptor <RpcEventHandler, SockAcceptor> RpcServer;#endifclass RpcIfServer : public RpcServer    {  public:    typedef RpcServer super;    enum concurrency_t {	SingleThreaded = 1,	ThreadPerConnection,	ThreadPooled    };            RpcIfServer	(	Reactor*	reactor,	RpcDispatcher*	dispatcher,	concurrency_t	= SingleThreaded	);    virtual ~RpcIfServer ();    virtual int open	(	const INETSockAddr&	addr,	Reactor*		reactor,	int			reuseAddr = 1,	int			minThreads = g_vxdcomMinThreads,	int			maxThreads = g_vxdcomMaxThreads	);    virtual int close ();    concurrency_t concurrency () const;    ThreadPool* threadPool ();	    const RpcStringBinding& addressBinding ();    int rpcAddressFormat	(	BSTR*		result,	bool		includePortNumber = true	);  protected:    RpcIfServer ();    // ensure RpcIfServer is an ABC.    virtual int newSvcHandler (RpcEventHandler*&);    // override Acceptor  private:    RpcDispatcher*	m_dispatcher;    RpcStringBinding	m_addressBinding;    concurrency_t	m_concurrency;    ThreadPool		m_threadPool;    // unsupported    RpcIfServer (const RpcIfServer& other);    RpcIfServer& operator= (const RpcIfServer& rhs);    };#endif // __INCRpcIfServer_h

⌨️ 快捷键说明

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