Make tcp handling more useful.
Make tcp handling more useful.

Print better errors from tcp proxy.
Return the number of bytes sent.

BUG=None
TEST=None
R=binji@chromium.org

Review URL: https://codereview.chromium.org/1063823002

yeyus/naclports,yeyus/naclports,yeyus/naclports,yeyus/naclports,yeyus/naclports,yeyus/naclports