W
Will
I have a client and a server, the server executes bind(), receives data,
and then I close() the file descriptor. In the client side I
connect(), send() data and close() the file descriptor also.
Everything works fine, but when I restart the server it gives me an
error in bind, the error description is "Address already in use" or
something like that, and it works just fine about a minute after I first
close the socket.
Any idea of how to close the socket without keeping the address used?
and then I close() the file descriptor. In the client side I
connect(), send() data and close() the file descriptor also.
Everything works fine, but when I restart the server it gives me an
error in bind, the error description is "Address already in use" or
something like that, and it works just fine about a minute after I first
close the socket.
Any idea of how to close the socket without keeping the address used?