コード例 #1
0
        public Client(BasicTcpServer server, TcpClient client)
        {
            _Server = server;

            Ip        = client.Client.RemoteEndPoint.ToString();
            TcpClient = client;

            _Token = _TokenSource.Token;

            _NetworkStream = TcpClient.GetStream();

            Task.Run(() => StartRecieveDataAsync(_Token), _Token);

            IsConnected = true;
        }