Add a method to make the sockets non-blocking.