[Mono-dev] Mono's impl of System.Net.NetworkInformation

Miguel de Icaza miguel at novell.com
Tue Jul 17 14:50:47 EDT 2007


> Ok. I imagine that dbus would give everything we need here, right? 

Not really.   D-Bus would help us keep track of one of the issues:
whether we are connected or not.

For other NetworkInformation bits, we have to write specific code for
each case.   I just mentioned D-Bus in the context of your comment about
the comments in the source code.

> In
> the meantime I've written a little p/invoke on libc to acquire the
> network interfaces available so that GetAllNetworkInterfaces() can
> return something good. What is the normal way of handling these? 

That sounds like the right approach.    What call are you doing?  Maybe
that information is already available in Mono.Posix and we could call

> I
> realize that this won't work on Win32 (same issue with dbus?) as it
> needs a different p/invoke. How does mono normally take care of these
> types of issues? 

We check at runtime on what platform we are running, and depending on
it, we call the proper code.


More information about the Mono-devel-list mailing list