Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MulticastService optimizations #35

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Spike/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ static void Main(string[] args)
};
LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter(properties);

var mdns = new MulticastService
{
NetworkInterfaceDiscoveryInterval = TimeSpan.FromSeconds(1),
};
var mdns = new MulticastService();

foreach (var a in MulticastService.GetIPAddresses())
{
Expand Down
22 changes: 18 additions & 4 deletions src/MessageEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Makaretu.Dns;
using System;
using System.Collections.Generic;
using System.Text;
using System;
using System.Net;

namespace Makaretu.Dns
{
Expand All @@ -18,6 +16,22 @@ public class MessageEventArgs : EventArgs
/// The received message.
/// </value>
public Message Message { get; set; }

/// <summary>
/// The IP address.
/// </summary>
/// <value>
/// The local network interface IP address.
/// </value>
public IPAddress LocalAddress { get; set; }

/// <summary>
/// The DNS message sender endpoint.
/// </summary>
/// <value>
/// The endpoint from the message was received.
/// </value>
public IPEndPoint RemoteEndPoint { get; set; }
}
}

Loading