Fixed constructors.
Fixed ConnectToHost function.
Fixed read/write functions.
Merge branch 'test-tcpsocket'