Re: CSocket, best way to wait for a reply?

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



"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:8qv951p1i7gv6r3pa7moenu666ip7qsjgo@xxxxxxxxxx
> Well, your first mistake is using CSocket. You already have a situation
> that is, as far as
> I am concerned, completely unrecoverable and unsalvageable. Lose the
> CSocket entirely, and
> use CAsyncSocket. CSocket ranks among the worst possible ways to implement
> network
> communication.
>
> As far as I'm concerned, until CSocket is completely removed and you
> rewrite your code to
> use CAsyncSocket, you have a program that is guaranteed to fail in ways
> that are
> unrecoverable.
>

Well, I changed to CAsyncSocket and it seems to be a lot more stable.
But I still need to run some tests to make sure.

I am worried that I am "hoping" the system works rather than "Knowing" the
system works.

Simon


.



Relevant Pages

  • Re: copy pointer CSocket class
    ... See my essay on asynchronous sockets on my MVP Tips site. ... I change all CSocket into CAsyncSocket ... First of all, I would like to thank AliR, Joe and David for the ...
    (microsoft.public.vc.mfc)
  • Re: Synchronization with CAsyncSocket in CE 6.0
    ... replace them with winsock function calls. ... For sending the query/data to the gateway: ... So, CAsyncSocket while possibly a bad way to do things, does not appear to ... searching for CSocket or CAsyncSocket). ...
    (microsoft.public.windowsce.embedded)
  • Re: csocket or Asyncsocket
    ... I wouldn't recommend using MFC (CSocket, CAsyncSocket). ... blocking socket is just a perversion if you ask me). ...
    (microsoft.public.win32.programmer.networks)
  • Re: Using CSocket calls in COM+ DLL blocking IIS 6.0
    ... Don't use CSocket. ... Either use CAsyncSocket, or use the WinSock ... blocking socket abstraction, but based on CAsyncSocket, ... A furhter piece of advice - move all networking code to a ...
    (microsoft.public.vc.atl)
  • Re: how to block CAsyncSocket Receive
    ... On accept, the receiving code ... > this reply and CAsyncSocket doesn't do that. ... > plunge into CSocket world? ... Sychronous socket design has an inherant flaw: ...
    (microsoft.public.vc.mfc)