Results 1 to 2 of 2

Thread: CAsyncSocket DGRAM & OnReceive

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Location
    Cardiff, UK
    Posts
    8

    CAsyncSocket DGRAM & OnReceive

    I've derived a class from CAsyncSocket and overridden OnReceive.

    After creating and connecting the socket, I can send data from it ok, but it never picks up data that is being sent to it.

    I've tried calling AsyncSelect(FD_READ), but it didn't help.

    Any ideas?

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    43

    Smile Re: CAsyncSocket DGRAM & OnReceive

    Hi,

    As u have not sent the codes its hard to decide whats happening.

    What I think Why u call OnReceive() for receiving. Call Receive().

    It should work...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width