humble linuxer
11-15-2003, 06:45 PM
i have created a small file server that allows a client to open a tcp socket connection and download a file. I want the connection to stay alive so that the client can contact it many times without having to restart the server. How do I ensure that the connection is closed after each transaction so that the same port number can be used for the next connection? I have tried many ways but I keep getting the error "java.net.BindException: Address in use: bind". Any ideas?
I will suuply the code if need be.
thanks.
I will suuply the code if need be.
thanks.