add methods and parameters to Tcp_client class