当前位置: 首页>>代码示例>>C++>>正文


C++ ACE_Reactor_Impl类代码示例

本文整理汇总了C++中ACE_Reactor_Impl的典型用法代码示例。如果您正苦于以下问题:C++ ACE_Reactor_Impl类的具体用法?C++ ACE_Reactor_Impl怎么用?C++ ACE_Reactor_Impl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ACE_Reactor_Impl类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ReactorRunnable

	ReactorRunnable() :
			m_Reactor(0), m_Connections(0), m_ThreadId(-1) {
		ACE_Reactor_Impl* imp = 0;

#if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL)

		imp = new ACE_Dev_Poll_Reactor();

		imp->max_notify_iterations (128);
		imp->restart (1);

#else

		imp = new ACE_TP_Reactor();
		imp->max_notify_iterations(128);

#endif

		m_Reactor = new ACE_Reactor(imp, 1);
	}
开发者ID:ProjectStarGate,项目名称:StarGate-Plus-EMU,代码行数:20,代码来源:WorldSocketMgr.cpp

示例2: RARunnable

        RARunnable()
        {
            ACE_Reactor_Impl* imp = 0;

#if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL)

            imp = new ACE_Dev_Poll_Reactor();

            imp->max_notify_iterations(128);
            imp->restart(1);

#else

            imp = new ACE_TP_Reactor();
            imp->max_notify_iterations(128);

#endif

            m_Reactor = new ACE_Reactor(imp, 1 /* 1= delete implementation so we don't have to care */);

            m_Acceptor = new RASocket::Acceptor;
        }
开发者ID:AlexHjelm,项目名称:Core,代码行数:22,代码来源:Master.cpp


注:本文中的ACE_Reactor_Impl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。