Ejemplo n.º 1
0
        public async Task GetJsonMessageTest()
        {
            using (var proxy = new NemeaProxy())
            {
                await proxy.Connect(new Uri("telnet://172.16.0.1:9999"));

                var msg = proxy.GetJsonMessage();
            }
        }
Ejemplo n.º 2
0
        public async Task GetMessageTest()
        {
            using (var proxy = new NemeaProxy())
            {
                await proxy.Connect(new Uri("http://sauvignon.liberouter.org:9999/"));

                var msg = proxy.GetMessage();
            }
        }
Ejemplo n.º 3
0
        public async Task ConnectTestVagrant()
        {
            using (var proxy = new NemeaProxy())
            {
                await proxy.Connect(new Uri("http://sauvignon.liberouter.org:9999/"));

                using (var textReader = new StreamReader(proxy.NetworkStream))
                {
                    var line = textReader.ReadLine();
                }
            }
        }
Ejemplo n.º 4
0
        public async Task NemeaReadTest()
        {
            using (var proxy = new NemeaProxy())
            {
                await proxy.Connect(new Uri("http://sauvignon.liberouter.org:9999/"));

                char[] Buffer = new char[1024];
                using (var textReader = new StreamReader(proxy.NetworkStream))
                {
                    var read = textReader.Read(Buffer, 0, 1024);
                }
            }
        }