Provide TCP socket with timeouts
Catch errors from the socket
Merge pull request #14 from eric/tcp-client-with-timeouts

Tcp client with timeouts