CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    2

    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.

  2. #2
    Join Date
    Jan 2003
    Location
    Cambridge, UK
    Posts
    752

    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

  3. #3
    Join Date
    Jul 2005
    Posts
    2

    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!

  4. #4
    Join Date
    Jan 2003
    Location
    Cambridge, UK
    Posts
    752

    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
  •  





Click Here to Expand Forum to Full Width

Featured