|
-
July 25th, 2005, 01:31 AM
#1
WinSock Programming: Windows version of Server works but not embedded??
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.
-
August 8th, 2005, 05:13 PM
#2
Re: WinSock Programming: Windows version of Server works but not embedded??
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...
Cheers,
Alex
 Please rate this post if you find it helpful 
-
August 8th, 2005, 10:33 PM
#3
Re: WinSock Programming: Windows version of Server works but not embedded??
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!
-
August 9th, 2005, 01:37 AM
#4
Re: WinSock Programming: Windows version of Server works but not embedded??
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.
Cheers,
Alex
 Please rate this post if you find it helpful 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|