Beispiel #1
0
 public PingUtility(int port)
 {
     _client = new UdpClient(port);
     _network = NetworkCalculator.Create();
     _client.MessageRecieved += OnMessage;
     HandlePing += (ip, p) => Task.FromResult(0);
 }
Beispiel #2
0
 public PingUtility(int port)
 {
     _client  = new UdpClient(port);
     _network = NetworkCalculator.Create();
     _client.MessageRecieved += OnMessage;
     HandlePing += (ip, p) => Task.FromResult(0);
 }
Beispiel #3
0
 public CommandSender()
 {
     _network = NetworkCalculator.Create();
     _knownEndpoints = new ConcurrentDictionary<IPAddress, int>();
     _formatter = new JsonCommandFormatter();
 }