




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
CACEReactor?■◆■■●●●ACEC+■■■●●●●●●+zero:+max_time:-tv_:+ACE_Time_Value(sec:long,usec:long=+ACE_Time_Value(t:conststructtimeval+ACE_Time_Value(t:consttimespec_t+ACE_Time_Value(t:constFILETIME+set(sec:long,usec:+set(t:conststructtimeval+set(t:consttimespec_t+set(t:constFILETIME+sec():+usec():+msec():+operator+=(tv:constACE_Time_Value&):ACE_Time_Value+operator-=(tv:constACE_Time_Value&):ACE_Time_Value+operator*=(d:double):ACE_Time_Value■■■●●●●●●在其它的handle_*函數(shù)中的一個返回-1時,或是在事件類 描 異常事件,如緊急數(shù)據(jù)(outofbound)出現(xiàn)在socket ●●●事件類型priority_:reactor_:ACE_Reactor#ACE_Event_Handler(r:ACE_Reactor*=prio:int=+~ACE_Event_Handler+handle_input(h:ACE_HANDLE=ACE_INVALID_HANDLE):+handle_output(h:ACE_HANDLE=ACE_INVALID_HANDLE):+handle_exception(h:ACE_HANDLE=ACE_INVALID_HANDLE)+handle_timeout(now:ACE_Time_Value&,act:void*=:+handle_signal(signum:int,info:siginfo_t*=ctx:ucontext_t*=0):+handle_close(h:ACE_HANDLE,mask:ACE_Reactor_Mask)+get_handle():+reactor():ACE_Reactor+reactor(r:ACE_Reactor+priority():+priority(prio:■■■●●●2010-12-3112:08:12■■■●●●●●#reactor_#reactor_:ACE_Reactor#implementation_:ACE_Reactor_Impl+ACE_Reactor(implementation:ACE_Reactor_Impl=delete_implementation:int=+open(max_handlesint,restart:int=sig_handlerACE_Sig_Handler*=timer_queueACE_Timer_Queue*=0):+close():+register_handler(handler:ACE_Event_Handlermask:ACE_Reactor_Mask):
+register_handler(io:ACE_HANDLE,handler:ACE_Event_Handlermask:ACE_Reactor_Mask):+remove_handler(handler:ACE_Event_Handlermask:ACE_Reactor_Mask):+remove_handler(io:ACE_HANDLE,mask:ACE_Reactor_Mask):+remove_handler(hs:constACE_Handle_Set&,m:ACE_Reactor_Mask):int+suspend_handler(handler:ACE_Event_Handler*):+resume_handler(handler:ACE_Event_Handler*):+mask_ops(handler:ACE_Event_handlermask:ACE_Reactor_Mask,ops:int):+schedule_wakeup(handler:ACE_Event_Handler*,masks_to_be_added:ACE_Reactor_Mask):int+cancel_wakeup(handler:ACE_Event_Handler*,masks_to_be_cleared:ACE_Reactor_Mask):int+handle_events(max_wait_time:ACE_Time_Value*=0):
+run_reactor_event_loop(event_hook:int(*)(void*)=0):+end_reactor_event_loop():+reactor_event_loop_done():+schedule_timer(handler:ACE_Event_Handler*,arg:void*,delay:ACE_Time_Value&,repeat:ACE_Time_Value&=ACE_Time_Value::zero):+cancel_timer(handler:ACE_Event_Handlerdont_call_handle_close:int=1):+cancel_timer(timer_id:long,arg:void**=dont_call_handle_closeint1 +notify(handler:ACE_Event_Handler*=mask:ACE_Reactor_Mask=ACE_Event_Handler::EXCEPT_MASK,timeout:ACE_Time_Value*=0):int+max_notify_iterations(iterations:int):+purge_pending_notifications(handler:ACE_Event_Handler*,mask:ACE_Reactor_Mask=ALL_EVENTS_MASK):int+instance():ACE_Reactor+owner(new_owner:old_owner:ACE_thread_t*=0):
■■用結(jié)束時返回1■■●●●●■■●●●#include#include<ace/Reactor.h>#include<ace/TP_Reactor.h>#include<ace/Thread_Manager.h>#include<ace/Auto_Ptr.h>#includestaticACE_THR_FUNC_RETURNeventLoop(void{ACE_Reactor*reactor=static_cast<ACE_Reactor*>return0;}intmain()ParticipantAcceptoracceptor(ACE_Reactor::instance());A
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高考語文備考之名著閱讀《鄉(xiāng)土中國》第八章《禮治秩序》內(nèi)容概述及跟蹤訓練(含答案)
- 2025年古典占星測試題及答案
- 2025年海南省歷史試題及答案
- 國開建筑工程施工管理實踐作業(yè)
- 2025年初中人教版七年級下冊語文全冊導學案
- 2025-2030年中國蓖麻粕蛋白粉數(shù)據(jù)監(jiān)測研究報告
- 2025-2030年中國波峰棉數(shù)據(jù)監(jiān)測研究報告
- 2025年幼兒園音樂教學標準教案
- Unit 3 I'm more outgoing than my sister.知識點(1) 訓練(無答案)2025年人教版英語八年級上冊
- 金融行業(yè)區(qū)塊鏈技術(shù)在供應(yīng)鏈金融中的應(yīng)用方案
- 【部編版道德與法治六年級下冊】全冊測試卷(含答案)
- 2024年中考英語專項復習:傳統(tǒng)文化的魅力(閱讀理解+完型填空+書面表達)(含答案)
- 酒店物業(yè)管理服務(wù)合同范本
- 2024-2030年中國磷系阻燃劑行業(yè)市場發(fā)展分析及發(fā)展趨勢與投資前景研究報告
- 2024-2030年中國公路勘察設(shè)計行業(yè)市場深度調(diào)研及競爭格局與發(fā)展趨勢研究分析報告
- 報價單完整版本
- JT-T-794-2019道路運輸車輛衛(wèi)星定位系統(tǒng)車載終端技術(shù)要求
- 【課件】勃蘭登堡協(xié)奏曲Ⅱ+課件高一上學期音樂人音版(2019)必修音樂鑒賞
- G -B- 5009.11-2024 食品安全國家標準 食品中總砷及無機砷的測定(正式版)
- 小學四年級小數(shù)單位換算練習題100道
- ISO9001:2015供應(yīng)商審核檢查表英文版
評論
0/150
提交評論