![]() |
Chat on IRC |
Winsock
Posted by Spyder_Y3K [send private reply] at August 04, 2002, 04:18:20 PM
I'm making a simple winsock program that uses a client and server...the first time I connect to the server it works fine and everything but when I close the client or try to connect a second time I get an Error (Winsock Error: 10061) does anyone know why i'm getting an error ?
Posted by Neumann [send private reply] at August 04, 2002, 04:20:28 PM
WSAECONNREFUSED ECONNREFUSED 10061 As in BSD
It's connection refused. You'd have to make sure your server still listen() on the same port after the first connection.
Posted by Spyder_Y3K [send private reply] at August 04, 2002, 04:39:14 PM
I put a timer in the server that checks the winsock state and if it is closed to start listening again...but I still get the error
Posted by Psion [send private reply] at August 04, 2002, 05:31:29 PM
Are you accepting the connection the second time...?
Posted by Spyder_Y3K [send private reply] at August 04, 2002, 06:26:06 PM
Nevermind my post, I just figured it out...thanx for your help
Register as a new user | |||||||