Re: CAsyncSocket OnReceive() never called
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Sun, 29 Apr 2007 11:07:44 +0300
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.
.
- Follow-Ups:
- Re: CAsyncSocket OnReceive() never called
- From: barry hunt
- Re: CAsyncSocket OnReceive() never called
- References:
- CAsyncSocket OnReceive() never called
- From: john Voight
- Re: CAsyncSocket OnReceive() never called
- From: Arkady Frenkel
- Re: CAsyncSocket OnReceive() never called
- From: barry hunt
- Re: CAsyncSocket OnReceive() never called
- From: Arkady Frenkel
- CAsyncSocket OnReceive() never called
- Prev by Date: Re: CAsyncSocket OnReceive() never called
- Next by Date: Re: socket communication: send & receive doesn't work right
- Previous by thread: Re: CAsyncSocket OnReceive() never called
- Next by thread: Re: CAsyncSocket OnReceive() never called
- Index(es):
Relevant Pages
|
|