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. Error when using CSocket with Threading

Error when using CSocket with Threading

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 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.
  • G Offline
    G Offline
    Girish601
    wrote on last edited by
    #1

    Hello people Can anybody explain why my CSocket Receive call fails when i use it with threading With Rgds

    Girish Software Developer

    M M 2 Replies Last reply
    0
    • G Girish601

      Hello people Can anybody explain why my CSocket Receive call fails when i use it with threading With Rgds

      Girish Software Developer

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, check error code

      ----------- Mila

      S 1 Reply Last reply
      0
      • M Mila025

        Hi, check error code

        ----------- Mila

        S Offline
        S Offline
        spielehelfer
        wrote on last edited by
        #3

        Oh interesting, someone else with CSocket and Thread probs.... Had lately also probs with CSocket and CAsyncSocket....sending works fine but no Messages were send/received so I was unable to receive ..... I went back to C based socket communication and there it works

        M 1 Reply Last reply
        0
        • S spielehelfer

          Oh interesting, someone else with CSocket and Thread probs.... Had lately also probs with CSocket and CAsyncSocket....sending works fine but no Messages were send/received so I was unable to receive ..... I went back to C based socket communication and there it works

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          If you had working code why would you use SOCKET wrapper classes? CSocket, IMO, is only useful in a simple app. CAsyncSocket is better (lower level) but unless you're using window messages for socket notifications (why would you do that in a multithread app?) then you don't get much but a thin wrapper. Both work fine as designed and documented but they're not for everyone :) Cheers! Mark

          1 Reply Last reply
          0
          • G Girish601

            Hello people Can anybody explain why my CSocket Receive call fails when i use it with threading With Rgds

            Girish Software Developer

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            Girish601 wrote:

            Can anybody explain why my CSocket Receive call fails when i use it with threading

            Can you explain HOW the receive call fails?

            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