Sockets class, nonblocking with fork()