您的位置:首页 > 理论基础 > 计算机网络

Some information about TCP socket in WINCE

2013-12-31 23:09 671 查看
Continuing the bandwidth testing for TCPsocket in WINCE. There is a strange thing for that.
I always get a very low speed when wincetarget as TCP socket server, the speed around 30KBps, that is not we want. Itry to improve it, but fail.

In the internet, we observed that there is a article withtop “BUG: CCeSocket OnReceive() does not get called for accepted datasockets” from MS support, but I try to find the file wcesock.h fail, there is no this file in winceplatform.

So from now on, what I can do istry to use TCP socket client in wince target, and PC as server. That is good,the speed can up to 4MBps.

Another information, when I tryto using TCP socket as client in wince target to connect to TCP socket asserver in PC, the connect function always return fail, the error code is 10061,means “WSAECONNREFUSED”, describe as “Connection refused. Noconnection could be made because the target machine actively refused it. Thisusually results from trying to connect to a service that is inactive on theforeign host ― that is, one with no server application running”.

That is because the firewall wasenabled. After I disable the firewall in PC, the connect return success, sendand recv success too.

本文出自 “bluefish” 博客,请务必保留此出处http://bluefish.blog.51cto.com/214870/1347297
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: