找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 7149|回复: 6

IOCP需要自己拼包马?

[复制链接]
发表于 2009-8-6 10:32:16 | 显示全部楼层 |阅读模式
就是说客户端异步发送的数据包,会不会只发送一半,在服务器这边就收到一个完成端口消息
自己在局域网测试的话,wsasend会把客户端的包拼起来,也就是若干个wsasend发送的异步数据
在服务其端只收到一次接受完成事件。也就是说服务器端收到的消息包里包含若干个消息
需要拆包。但是测试不出来是否会出现客户端的wsasend拆包,让服务器端拼包的情况。
谁知道服务器端是否需要拼包的逻辑阿。
发表于 2009-8-6 21:42:25 | 显示全部楼层
因为是异步,所以返回的时候,收取了多少未知。需要自己定义协议去分解。
发表于 2010-3-4 02:27:22 | 显示全部楼层
IOCP是微软的东西吧,呵呵
和ACE什么关系?
发表于 2010-3-4 09:59:02 | 显示全部楼层
原帖由 <i>thinke365</i> 于 2010-3-4 02:27 发表 <a href="http://acejoy.com/bbs/redirect.php?goto=findpost&pid=6245&ptid=1324" target="_blank"><img src="http://acejoy.com/bbs/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
IOCP是微软的东西吧,呵呵<br />
和ACE什么关系?
<br />

ace的win proactor封装的iocp
发表于 2010-5-5 18:11:52 | 显示全部楼层
原帖由 wishel 于 2010-3-4 09:59 发表


ace的win proactor封装的iocp



跨平台性还好??
发表于 2010-5-5 22:21:54 | 显示全部楼层
proactor不要跨平台用,linux平台对异步支持不理想,而且也没必要用,用epoll。
发表于 2013-1-25 10:21:47 | 显示全部楼层
winston 发表于 2010-5-5 22:21
proactor不要跨平台用,linux平台对异步支持不理想,而且也没必要用,用epoll。 ...

在项目中证明,的确如此,proactor在linux不理想
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-4-29 03:02 , Processed in 0.013824 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表