Hi all,
i have this problem: i got this C server which is waiting for the
java clients to arrive. first i connect a client (socket = new Socket ("localhost", 25557)

and then i quit de client, then i do this again and no problem, but the third time i get this exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at queryAnalyzer.action(queryAnalyzer.java:314)
at Socket_server$Client.run(Socket_server.java:38)
at ThreadPoolWorker.runIt(ThreadPoolWorker.java:72)
at ThreadPoolWorker.runWork(ThreadPoolWorker.java:63)
at ThreadPoolWorker.access$000(ThreadPoolWorker.java:3)
at ThreadPoolWorker$1.run(ThreadPoolWorker.java:25)
at java.lang.Thread.run(Thread.java:534)
I know i�m not providing too much info about my program, but it would be difficult to do it in a few lines, so if you could point me in any direction so i could start looking for the failure, or give me any clue about what to look for, i would be very grateful!