Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

OSX GetActiveTcpListeners Not Implemented? (System.Net.NetworkInformation.IPGlobalProperties)

$
0
0

Total newb to mono & Xamarin on Mac OS X.

Is there something else I could/should be using to GetActiveTcpListeners, GetActiveTcpConnections & GetActiveUdpListeners?

        IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
        IPEndPoint[] eps = properties.GetActiveTcpListeners();

System.NotImplementedException: The method or operation is not implemented.
at System.Net.NetworkInformation.UnixIPGlobalProperties.GetActiveTcpListeners () [0x00000] in /private/tmp/source-mono-4.2.4/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.4/mcs/class/System/System.Net.NetworkInformation/IPGlobalProperties.cs:144
at PortsUsage.PortsClass.Main () [0x0001e] in /Users//PortsClass.cs:18

I also used mono in Terminal:
mono -V
Mono JIT compiler version 4.2.4 (explicit/71b88f3 Thu May 5 17:25:51 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: yes(3.6.0svn-mono-(detached/a173357)
GC: sgen

mono PortsClass.exe
Unhandled Exception:
System.NotImplementedException: The method or operation is not implemented.
at System.Net.NetworkInformation.UnixIPGlobalProperties.GetActiveTcpListeners () <0x6dc540 + 0x0001f> in :0
at PortsUsage.PortsClass.Main () <0x6daed8 + 0x0005a> in :0

Should I programmatically capture lsof cmds instead?


Viewing all articles
Browse latest Browse all 1429

Latest Images

Trending Articles



Latest Images