版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rè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)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 瑜伽助教申請書
- 鉗柄套項(xiàng)目可行性研究報告評審方案設(shè)計(jì)(2025年標(biāo)準(zhǔn)案例范文)
- 2025年度文化交流活動組織與管理合同
- 單方離婚申請書
- 申請書的英文翻譯
- 2025年度飼料及飼料添加劑購銷合同模板大全
- 2025年度國際工程承包施工合同-@-1
- 2024-2030年中國絲襪行業(yè)市場發(fā)展監(jiān)測及投資戰(zhàn)略規(guī)劃報告
- 2025年度合法民間借款合同糾紛解決途徑范本
- 2025年生物燃料生產(chǎn)建設(shè)項(xiàng)目節(jié)能評估報告(節(jié)能專)
- (正式版)HGT 22820-2024 化工安全儀表系統(tǒng)工程設(shè)計(jì)規(guī)范
- 寶典三猿金錢錄
- 安徽凌瑋新材料科技有限公司年產(chǎn)2萬噸超細(xì)二氧化硅氣凝膠系列產(chǎn)品項(xiàng)目環(huán)境影響報告書
- 聚合物粘彈性
- 建筑工程施工現(xiàn)場安全資料管理規(guī)程解讀
- 華銀鋁項(xiàng)目氧化鋁系統(tǒng)總體投料試車方案
- 2023年衛(wèi)生院崗位大練兵大比武競賽活動實(shí)施方案
- 2023年浙江省初中學(xué)生化學(xué)競賽初賽試卷
- 遼海版小學(xué)五年級美術(shù)下冊全套課件
- 專題7閱讀理解之文化藝術(shù)類-備戰(zhàn)205高考英語6年真題分項(xiàng)版精解精析原卷
- 2022年廣東省10月自考藝術(shù)概論00504試題及答案
評論
0/150
提交評論