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
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
相关文章推荐
- 绕过https下载aosp代码
- 浏览器的工作原理:新式网络浏览器幕后揭秘{转}
- TCP协议缺陷与SYN Flooding攻击
- linux 常用网络操作方法
- linux 常用网络配置文件
- Error : UDP timeout, retrying with TCP
- tcpdump 本机回环,应该用tcpdump -i lo
- MTU MSS 和 TCP的关系
- 关于android手机端tcpdump抓取数据包
- 网络号和主机号的计算
- 黑马程序员--javaSE--网络编程基础总结
- HTTP访问的两种方式(HttpClient和HttpURLConnection)
- 黑马程序员 知识点总结-Java网络编程
- http协议学习系列
- 卷积神经网络
- java netty http
- Java JDBC连接SQL Server2005错误:通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败
- win7 + IIS7.0 HTTP 错误 404.2 - Not Found 由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面
- 以本人为例:为什么你永远是屌丝
- Http协议简单学习笔记