Re: Csocket onReceive() get data on XPmachine but not Win2k machine

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Scott McPhillips [MVP] (scottmcp_at_mvps.org.nothere)
Date: 03/20/04


Date: Fri, 19 Mar 2004 20:27:03 -0500

glweid wrote:

> I have a client server app that I'm testing on the same machine.
>
> I'm experiencing a problem on my Win 2K Pro machine.
>
> The client connects to the server (via CSocket) OK and I hit the OnAccept() method but the OnReceive() method is never hit when the client sends data.
>
> I tried the same app on my co-workers machine (same Win2K OS and SP4 version) and it works OK ! Also works on my XP machine.
>
> Am I missing a possible patch or service ??
>
> Microsofts basic mfcsock test program has the same problem.
>
> Any help is appreciated, THANKS !
>
>

There are some old known problems in CSocket. If you are using VC6 make
sure you have installed the SP5 update. Also call AfxSocketInit in
every thread that uses MFC sockets.

-- 
Scott McPhillips [VC++ MVP]


Relevant Pages

  • Re: Remote Desktop hangs until hitting a key on host machine
    ... The first time I connect to my XP Pro machine using the Remote Desktop ... Client the screen on the (server side) machine goes blank/black just as I hit ... OK in the "Log On to Windows" dialog on the client side. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: CSocket, best way to wait for a reply?
    ... your first mistake is using CSocket. ... >Basically the client sends a message to the server and in turn the server ... >sends a message back to the client. ... >simply hangs and waits forever for the PumpMessagesto return. ...
    (microsoft.public.vc.mfc)
  • Re: SSL performance
    ... regarding how to increase the SSL session alive time? ... > connection I'm using both server and client certificate. ... > I receive a performance hit for about 20-30 sec on the first call with the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: CSocket stops receiving
    ... I wouldn't trust CSocket as far as I could toss a 3500KW Uninterruptible Power Supply. ... The general communication type is thus - client sends a request, ... server processes and sends some sort of a reply. ...
    (microsoft.public.vc.mfc)
  • Re: CSocket
    ... >I am havin a tough time using Csocket class. ... >I'm tryin to create a Client and a Server using Csocket in a CONSOLE ...
    (microsoft.public.vc.mfc)