Click to See Complete Forum and Search --> : WinSock Programming: Windows version of Server works but not embedded??
fluffy_ko
July 25th, 2005, 01:31 AM
Hi.
I created a Server and a Client winsock application (MFC), and when i run them using the emulator (WinCE .Net 4.2), the Server don't seems to get any "OnAccept" callbacks.
However it works fine if i build and compile the Server into Windows version...
Any idea what's happening here?
By the way, i'm using CCeSocket class for Embedded and CSocket class for Windows.
Thanks.
alex_gusev
August 8th, 2005, 05:13 PM
Hi,
there may be a lot of reasons causing this issue, but first of all you might check if emulator is allowed to get incoming connections. the easiest way to configure it is via Platform Manager, so you have to setup NAT.
btw, CCeSocket class is not so good choice...
fluffy_ko
August 8th, 2005, 10:33 PM
hi alex_gusev.
i had tried changing the emulator connection to Nat, Virtual, fixed IP, etc but the server still not able to work. i'm wondering if this could be the emulator problem?
initially when i wrote the client using CSocket class in windows, it works well but after i rebuilt it to Ce-Emulator, the Client simply not receiving any messages from the Server.
after i changed it to CCeSocket, this problem goes away... i'm not sure if i left out anything when using CSocket as both the code are the same??
thanks!
alex_gusev
August 9th, 2005, 01:37 AM
Hi, fluffy_ko,
where is your Server running, at desktop or under WinCE? you might also check how do you connect to server, i.e. with IP or by name. In the last case DNS and WINS should be defined. Also there are PING for WinCE (or you can write it on your own) to check if you see server's IP at all from emulator. Microsoft Loopback Adaptor may help too.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.