fixed server offline error
test
Merge branch 'master' of github.com:nilesr/tpm-client
added sock_write and sock_writeln