Lets say that we have created a socket with socket()
, then we used bind()
and listen()
. Then we use accept()
to wait for client requests, after a client is connected if we shutdown the server (for example we ctrl+c the process).
- Is the client still connected to the port ?
- Can we somehow reestablish connection to the socket ?
- Is this a client-side issue as well ? Or does
recvfrom()
wait for someone to bind back to the socket ?