Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CSocket OnReceive Problem....

CSocket OnReceive Problem....

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AkiraOne
    wrote on last edited by
    #1

    Hi All! I have a problem with MFC class CSocket, same times the OnReceive method is not called ... Any idea for fix this issue...:confused:

    Too many plans make the health badly!!

    J R D 3 Replies Last reply
    0
    • A AkiraOne

      Hi All! I have a problem with MFC class CSocket, same times the OnReceive method is not called ... Any idea for fix this issue...:confused:

      Too many plans make the health badly!!

      J Offline
      J Offline
      Jhony george
      wrote on last edited by
      #2

      please be clear in your question?

      how i can help you without any explanation?

      A 1 Reply Last reply
      0
      • J Jhony george

        please be clear in your question?

        how i can help you without any explanation?

        A Offline
        A Offline
        AkiraOne
        wrote on last edited by
        #3

        Yes.. I have implemented a Client\Server application, the communication is created through the class CSocket MFC... The server side send to client the information to visualize...and the client side visualize it on a display..( CDialog ) When server side send information to Client an OnReceive event is performe...and thats work fine.. But same times the event OnReceive not being called...because the underlying socket system did not give any notifications...i suppose Excuse for my bad english...

        Too many plans make the health badly!!

        1 Reply Last reply
        0
        • A AkiraOne

          Hi All! I have a problem with MFC class CSocket, same times the OnReceive method is not called ... Any idea for fix this issue...:confused:

          Too many plans make the health badly!!

          R Offline
          R Offline
          Roger Stoltz
          wrote on last edited by
          #4

          Do not use CSocket at all because it's filled with flaws. Use CAsyncSocket if any. Read this[^] to get it right using CAsyncSocket.


          "It's supposed to be hard, otherwise anybody could do it!" - selfquote
          "High speed never compensates for wrong direction!" - unknown

          A 1 Reply Last reply
          0
          • R Roger Stoltz

            Do not use CSocket at all because it's filled with flaws. Use CAsyncSocket if any. Read this[^] to get it right using CAsyncSocket.


            "It's supposed to be hard, otherwise anybody could do it!" - selfquote
            "High speed never compensates for wrong direction!" - unknown

            A Offline
            A Offline
            AkiraOne
            wrote on last edited by
            #5

            Thank you for the link....and for the help!

            Too many plans make the health badly!!

            1 Reply Last reply
            0
            • A AkiraOne

              Hi All! I have a problem with MFC class CSocket, same times the OnReceive method is not called ... Any idea for fix this issue...:confused:

              Too many plans make the health badly!!

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              AkiraOne wrote:

              I have a problem with MFC class CSocket, same times the OnReceive method is not called ...

              Does the same thing happen with CAsyncSocket?


              "A good athlete is the result of a good and worthy opponent." - David Crow

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              A 2 Replies Last reply
              0
              • D David Crow

                AkiraOne wrote:

                I have a problem with MFC class CSocket, same times the OnReceive method is not called ...

                Does the same thing happen with CAsyncSocket?


                "A good athlete is the result of a good and worthy opponent." - David Crow

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                A Offline
                A Offline
                AkiraOne
                wrote on last edited by
                #7

                I have not still been able to try... Today I will make some tests with the CAsynSocket...

                Too many plans make the health badly!!

                1 Reply Last reply
                0
                • D David Crow

                  AkiraOne wrote:

                  I have a problem with MFC class CSocket, same times the OnReceive method is not called ...

                  Does the same thing happen with CAsyncSocket?


                  "A good athlete is the result of a good and worthy opponent." - David Crow

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  A Offline
                  A Offline
                  AkiraOne
                  wrote on last edited by
                  #8

                  Yes..is the same...:doh:

                  Too many plans make the health badly!!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups