Exemple #1
0
 public GlobalUdpBroadcaster(int port, bool listen)
 {
     broadcasters = IPUtil.GetOperationalInterfaces()
                    .Select(nic =>
     {
         UdpBroadcaster b  = new UdpBroadcaster(nic.GetBroadcastAddress(), nic.Address, port, listen);
         b.Interface       = nic.Interface;
         b.PacketReceived += B_PacketReceived;
         return(b);
     })
                    .ToList();
 }
Exemple #2
0
 public IPAddress GetHighestInRange()
 {
     return(IPUtil.GetHighestInRange(Address, Mask));
 }