Click to See Complete Forum and Search --> : Winsock sckNotConnected
Ness
June 19th, 2004, 02:07 PM
The last winsock error was a false alarm, sorry guys. What it really was is that I'm getting sckNotConnected error. A PHP client connects to my computer through TCP. The client get's accepted correctly. When the client gets accepted, the program creates a recieve thread. But on the first loop of calling recv, I get SOCKET_ERROR, and I found out it was sckNotConnected. But if the connection was accepted, how could it not be connected?? :confused: :confused:
j0nas
June 19th, 2004, 03:29 PM
I think you need to post some code... We need to "see" how you transfer the socket to the thread function, and when the (thread) callee function goes out of scope.
kuphryn
June 19th, 2004, 10:25 PM
What is the time delay between when establishing a socket connection and when the program makes the call to recv()?
Kuphryn
Andreas Masur
June 20th, 2004, 07:50 AM
[Moved thread]
Ness
June 20th, 2004, 06:32 PM
Old thread, figured out why. It was returning -1 :lol:
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.