tcp_server_or_client