public async Task GetJsonMessageTest() { using (var proxy = new NemeaProxy()) { await proxy.Connect(new Uri("telnet://172.16.0.1:9999")); var msg = proxy.GetJsonMessage(); } }
public async Task GetMessageTest() { using (var proxy = new NemeaProxy()) { await proxy.Connect(new Uri("http://sauvignon.liberouter.org:9999/")); var msg = proxy.GetMessage(); } }
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(); } } }
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); } } }