Exemplo n.º 1
0
        static void Main(string[] args)
        {
            string identifier = args[0];
              int port = Int32.Parse(args[1]);
              var client = new TcpClient("localhost", port);
              if (!client.Connected)
              {
            throw new Exception();
              }
              _clueClient = new ClueClient(client.GetStream());

              _clueClient.Handshake(identifier);

              bool end = false;
              var ai = new ClueStick.ClueStick();
              while (!end)
              {
            end = _clueClient.ProcessMessage(ai);
              }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            string identifier = args[0];
            int    port       = Int32.Parse(args[1]);
            var    client     = new TcpClient("localhost", port);

            if (!client.Connected)
            {
                throw new Exception();
            }
            _clueClient = new ClueClient(client.GetStream());

            _clueClient.Handshake(identifier);

            bool end = false;
            var  ai  = new ClueStick.ClueStick();

            while (!end)
            {
                end = _clueClient.ProcessMessage(ai);
            }
        }