Adding more samples
Added non-blocking code for sockets