Tcp Client with more functions