MndpTray.Protocol 1.6.0

Mikrotik Neighbor Discovery Protocol - Network Discovery

There is a newer version of this package available.
See the version list below for details.
Install-Package MndpTray.Protocol -Version 1.6.0
dotnet add package MndpTray.Protocol --version 1.6.0
<PackageReference Include="MndpTray.Protocol" Version="1.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MndpTray.Protocol --version 1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MndpTray

MNDP Mikrotik Neighbor Discovery Protocol Tray Application

Functions:

  • Periodic sends Windows host information over MNDP, Mikrotik routers see it.
  • Listens to MNDP messsages and put them to list
  • Blocking winbox discovery function when running

Standalone library:

*Install via Nuget: https://www.nuget.org/packages/MndpTray.Protocol/

Usage:

using System;
using System.Threading;

namespace MndpTray.Protocol.Test
{
    public class Program
    {
        private static readonly Timer Timer = new Timer(Timer_Callback, null, Timeout.Infinite, Timeout.Infinite);

        public static void Main(string[] args)
        {
            MndpListener.Instance.Start();
            MndpSender.Instance.Start(MndpHostInfo.Instance);
            Timer.Change(0, 5000);

            Console.WriteLine("--- Start ---");
            while (!Console.KeyAvailable) { Thread.Sleep(100); }
            Console.WriteLine("--- Stop ---");

            Timer.Change(Timeout.Infinite, Timeout.Infinite);
            MndpListener.Instance.Stop();
            MndpSender.Instance.Stop();
        }

        private static void Timer_Callback(object state)
        {
            foreach (var i in MndpListener.Instance.GetMessages()) Console.WriteLine(i.Value.ToString());
            Console.WriteLine("--- Message List End ---");
        }
    }
}

MndpTray

MNDP Mikrotik Neighbor Discovery Protocol Tray Application

Functions:

  • Periodic sends Windows host information over MNDP, Mikrotik routers see it.
  • Listens to MNDP messsages and put them to list
  • Blocking winbox discovery function when running

Standalone library:

*Install via Nuget: https://www.nuget.org/packages/MndpTray.Protocol/

Usage:

using System;
using System.Threading;

namespace MndpTray.Protocol.Test
{
    public class Program
    {
        private static readonly Timer Timer = new Timer(Timer_Callback, null, Timeout.Infinite, Timeout.Infinite);

        public static void Main(string[] args)
        {
            MndpListener.Instance.Start();
            MndpSender.Instance.Start(MndpHostInfo.Instance);
            Timer.Change(0, 5000);

            Console.WriteLine("--- Start ---");
            while (!Console.KeyAvailable) { Thread.Sleep(100); }
            Console.WriteLine("--- Stop ---");

            Timer.Change(Timeout.Infinite, Timeout.Infinite);
            MndpListener.Instance.Stop();
            MndpSender.Instance.Stop();
        }

        private static void Timer_Callback(object state)
        {
            foreach (var i in MndpListener.Instance.GetMessages()) Console.WriteLine(i.Value.ToString());
            Console.WriteLine("--- Message List End ---");
        }
    }
}

Release Notes

IPv6 support

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.8.0 173 8/17/2019
1.7.0 112 7/22/2019
1.6.0 184 3/15/2019
1.5.0 234 1/18/2019
1.4.5 197 12/21/2018
1.4.4 183 12/18/2018
1.4.3 201 12/18/2018
1.4.1 225 12/13/2018
1.4.0 217 12/13/2018