Error when using CSocket with Threading
-
Hello people Can anybody explain why my CSocket Receive call fails when i use it with threading With Rgds
Girish Software Developer
-
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
-
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
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
-
Hello people Can anybody explain why my CSocket Receive call fails when i use it with threading With Rgds
Girish Software Developer
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?