Re: CAsyncSocket OnReceive() never called

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



BTW you can debug what happen if you put breakpoint DoCallBack func in
sockcore.cpp ( MFC sources )
Arkady

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:ukwxYKjiHHA.4668@xxxxxxxxxxxxxxxxxxxxxxx
Just a question , what studio are you using? For long period I'm not in
MFC world, but IIRC that did work in old MFC ( VS 6 )
Arkady

"barry hunt" <attackack@xxxxxxxxx> wrote in message
news:1177677460.704367.51070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 26 Apr, 12:11, "Arkady Frenkel" <arka...@xxxxxxxxxxxxxxxx> wrote:
Maybe you have no established connection, just a hint
Arkady"john Voight" <attack...@xxxxxxxxx> wrote in message

news:1177504587.453630.123790@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



I've created a class derived from CAsyncSocket and after I send a
request to the socket I see that the OnReceive() method is never
called. Do you have any idea why this happen?- Nascondi testo tra
virgolette -

- Mostra testo tra virgolette -

The socket is rightly connected. When I use send() and receive() I can
acquire the correct data but I have to block the thread while the
receive() download all the bytes in the buffer. If after this I need
to know if there is new data the method OnReceive() don't work. I
can't understand why it don't work. I have a MFC Dialog based window
and in it I have created a new class derivated from CAsyncSocket and
OnReceive() is a virtual method of it. After I connect the socket and
send a request to the server, OnReceive() is never called.





.



Relevant Pages

  • Re: CAsyncSocket OnReceive() never called
    ... For long period I'm not in MFC ... Mostra testo tra virgolette - ... The socket is rightly connected. ... acquire the correct data but I have to block the thread while the ...
    (microsoft.public.win32.programmer.networks)
  • Re: CAsyncsocket Attach and detach
    ... DLLs (of which the MFC and CRT runtimes are two of a couple dozen) and makes sure they are ... You can create installer files in VS.NET so there's no cost for a third-party ... I use CAsyncSocket to accept in OnAccept, detach the socket and set it ...
    (microsoft.public.vc.mfc)
  • Re: Difference between Windows Sockets and Windows sockets in MFC
    ... MFC uses the async socket model only. ... CSocket class contains a modal message loop to achieve blocking ...
    (microsoft.public.win32.programmer.networks)
  • 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: CArchive::WriteBuffer problem
    ... encountered a very critical problem with it, during my development, which ... for an MFC class that actually works 100%. ... Windows, there were only 500 programmers in the world writing in C++, so ... socket handles used as file handles even when using with plain API, ...
    (microsoft.public.win32.programmer.networks)