Add functions

Just add functions in TcpClient, to be continued.