Skip to content
Browse files

minor

  • Loading branch information...
1 parent e5f989b commit 824ad8f10492c354922f00dce594773e99c3fff4 @ayende ayende committed
Showing with 10 additions and 10 deletions.
  1. +9 −9 Raven.Database/Rhino.Licensing/Discovery/DiscoveryHost.cs
  2. +1 −1 Raven.Tryouts/Program.cs
View
18 Raven.Database/Rhino.Licensing/Discovery/DiscoveryHost.cs
@@ -22,15 +22,15 @@ public void Start()
{
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1);
- NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
- foreach (NetworkInterface adapter in adapters.Where(card => card.OperationalStatus == OperationalStatus.Up))
- {
- IPInterfaceProperties properties = adapter.GetIPProperties();
- foreach (var ipaddress in properties.UnicastAddresses.Where(x => x.Address.AddressFamily == AddressFamily.InterNetwork))
- {
- socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, (object)new MulticastOption(IPAddress.Parse("224.0.0.1"), ipaddress.Address));
- }
- }
+ NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
+ foreach (NetworkInterface adapter in adapters.Where(card => card.OperationalStatus == OperationalStatus.Up))
+ {
+ IPInterfaceProperties properties = adapter.GetIPProperties();
+ foreach (var ipaddress in properties.UnicastAddresses.Where(x => x.Address.AddressFamily == AddressFamily.InterNetwork))
+ {
+ socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, (object)new MulticastOption(IPAddress.Parse("224.0.0.1"), ipaddress.Address));
+ }
+ }
socket.Bind(new IPEndPoint(IPAddress.Any, 12391));
StartListening();
View
2 Raven.Tryouts/Program.cs
@@ -31,6 +31,6 @@ static void Main(string[] args)
public class Item3
{
- public int Age { get; set; }
+ public long Age { get; set; }
}
}

0 comments on commit 824ad8f

Please sign in to comment.
Something went wrong with that request. Please try again.