-- 开发指南
3.4 ACE Reactor Client (Demo)...............................................................................................................................30
3.4.1 需求................................................................................................................................................................30
3.4.2 实现 I.............................................................................................................................................................30
3.4.3 使用超时机制发送消息...............................................................................................................................34
3.4.4 实现 II............................................................................................................................................................34
3.5 前行的路标...........................................................................................................................................................38
4. ACE PROACTOR 框架...............................................................................................39
4.1 Proactor(前摄器)框架....................................................................................................................................39
4.1.1 异步 I/O 工厂类............................................................................................................................................41
4.1.2 ACE_Handler(完成处理器)..........................................................................................................................42
4.1.3 ACE_Message_Block....................................................................................................................................43
4.1.4 ACE_Proactor................................................................................................................................................44
4.2 前摄式 Acceptor-Connector 框架......................................................................................................................46
4.2.1 ACE_Service_Handler..................................................................................................................................46
4.2.2 ACE_Asynch_Acceptor................................................................................................................................47
4.2.3 ACE_Asynch_Connector..............................................................................................................................47
4.3 既生 Proactor,何生 Reactor (二者的应用范围).............................................................................................48
4.4 ACE Proactor Server (Demo)............................................................................................................................48
4.4.1 需求................................................................................................................................................................48
4.4.2 实现................................................................................................................................................................49
4.5 前行的路标...........................................................................................................................................................55
5. ACE TASK 框架..........................................................................................................56
5.1 我们的新需求.......................................................................................................................................................56
5.2 Task(任务)框架....................................................................................................................................................57
5.3 ACE_Message_Queue.........................................................................................................................................57
5.4 ACE_Task.............................................................................................................................................................60
5.5 Demo(Reactor Client 的改写)............................................................................................................................63
5.5.1 需求................................................................................................................................................................63
5.5.2 实现................................................................................................................................................................63
5.6 基本的线程安全性...............................................................................................................................................72
5.6.1 互斥体(Mutex)..............................................................................................................................................73
5.6.2 守卫(Guard)...................................................................................................................................................77
5.7 前行的路标...........................................................................................................................................................78
6. 总结.............................................................................................................................78
7. 常见问题......................................................................................................................79
上海超捷系统集成有限公司, 485