Some information about TCP socket in WINCE

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.


你可能感兴趣的:(tcp,WinCE)