Non-block tcp socket for client