Re: MFC Not Triggering OnReceive



There are alot of possibilities but the most common one is you might have
done something that blocks the message pump.

AliR.

<AlgorithmicAnimal@xxxxxxxxx> wrote in message
news:1177685116.573137.294000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 25, 4:46 pm, "AliR \(VC++ MVP\)" <A...@xxxxxxxxxxxxx> wrote:
I am sorry but it's most like a problem with your program. Create a
really
simple program that listens for a connection, accepts the connection and
send and receives data, and see if you can still recreate the problem.

If you can with the simple program then post the code here.

AliR.

<AlgorithmicAni...@xxxxxxxxx> wrote in message

news:1177530289.329872.256030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hello, I am writing adding simple socket communication to a larger
program and i cannot get myonReceiveto trigger. I have created the
server and when i do a netstat -a i can see my socket listening but
when i send data to it the buffer receives the data but theonReceive
method is never called so i cant handle the incoming data. Can anyone
tell me what might cause theMFCcode to not trigger its callback
functions?- Hide quoted text -

- Show quoted text -

I can create a simple program that works, but the wizard is setting
everything up for me. Inside of my larger app I can use the wizard to
create an entire new application using windows sockets. it's my
understanding that once the socket's buffer is filled with data that
the framework automatically calls the OnReceive function. In my
application this isnt happening. What are some of the reasons why the
framework wouldn't call the OnReceive function? Is there somewhere
that the function needs to be registered or something? I'm lost
because i can establish a connection and send data to the buffer but
my OnReceive method is never triggered. Any suggestions would be
greatly appreciated.



.



Relevant Pages

  • Re: MFC Not Triggering OnReceive
    ... simple program that listens for a connection, ... when i send data to it the buffer receives the data but theonReceive ... the framework automatically calls the OnReceive function. ...
    (microsoft.public.vc.mfc)
  • Re: [Ocfs2-devel] [PATCH 01/35] jbd2: Add buffer triggers
    ... This adds triggers to jbd2 buffer heads. ... an abort trigger will be ... used for non-buffer-related events like transaction completion. ... journal/transaction wide triggers should be implemented separately. ...
    (Linux-Kernel)
  • [PATCH 01/35] jbd2: Add buffer triggers
    ... This adds triggers to jbd2 buffer heads. ... an abort trigger will be ... used for non-buffer-related events like transaction completion. ... journal/transaction wide triggers should be implemented separately. ...
    (Linux-Kernel)
  • Re: Context of error messages with respect to BSD sockets
    ... under what circumstances will send or recv block? ... A 'connection mode' socket usually has an in-kernel send and ... receive buffer associated with it. ... this signifies that the connection has closed ...
    (comp.unix.programmer)
  • WMP9 Performance tab - Use it, or no?
    ... If I let WMP detect the connection speed, ... the audio plays a half second, breaks for a half second, plays for ... If I extend the buffer out to the max, I do get decent playback, ... Only 2 years ago NASA was using the older format ...
    (microsoft.public.windowsmedia.player)

Loading