I’ve set up a server and client pair using socket comms. If the client goes
down I can catch the broken pipe signal at the server SIGPIPE and start
listening for a new client request . this is OK.
If the server goes down but the client remains up I can not get the server
to connect to the port when it restarts. The only way to be able to bind to
the port again at the server is to close the client, the server then binds
and listens on the port and the client can be restarted.
Any idea how I can bind to the port at the server without restarting the
client ???
Thanks!