code revised.
added tcp_client class starting work