I got a little problem with a server / client, using TCP.
If I start my server, then start my client, all is good.
My client and server finds out if they "Loose connection", by checking returnvalue of recv().
But some of the functionality in my client use send() only, before any recv().
Meaning if I start my server, start my client, close the server, then my client will do send() to a closed connection.... And then I get segmentationFault.
How to avoid this?