




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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_*函數中的一個返回-1時,或是在事件類 描 異常事件,如緊急數據(outofbound)出現在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):
■■用結束時返回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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 智能制造財務擔保合同
- 保險單質押貸款業務保險理賠跟蹤合作協議
- 礦區土地承包開發投資合作協議書
- 基礎設施財務代理與運營管理協議
- 餐飲外賣平臺合作協議書
- 住宅區拆遷補償安置協議書(含房屋分配方案)
- 汽車抵押貸款反欺詐合同
- 車輛抵押貸款轉全款購車及貸款利率調整合同
- 企業分紅與財產分配協議
- 體育場館場地租賃及賽事運營管理合作協議
- GB/T 26354-2025旅游信息咨詢服務
- 【日化智云】2024年家居清潔品類市場概況及2025年消費者洞察新品趨勢報告
- 新疆維吾爾自治區2024年普通高校招生單列類(選考外語)本科一批次投檔情況(文史)
- 麻醉科理論知識培訓課件
- 課題申報書:數字化升級背景下嬰幼兒托育服務與管理專業“五金”建設實踐研究
- 江蘇省南京市2024年中考物理試卷(含答案)
- 湖南省2025年八年級下學期中考模擬生物試題(BEST聯考)(含答案)
- 拉薩市“一考三評”學習考試題庫
- 委托收款協議書模板
- 《工業網絡與組態技術》課程標準
- 一年級學生元角分練習500題
評論
0/150
提交評論