[Mono-dev] Testing if there is a network connection or not
Paul
paul at all-the-johnsons.co.uk
Mon Feb 12 02:59:53 EST 2007
Hi,
> > Is there another way to check if there is a connection or not without
> > using S.M.ManagementObjectSearcher?
>
> You have a number of options, you can try:
>
> * DBus# and send a message to NetworkManager to determine if
> you are connected or not (will only work on distros with NM)
>
> * If NM is not running, you could try the list of ethernet
> interfaces in /proc/net (will only work on Linux) and see if
> they are up.
Needs to be platform neutral - which is why I was trying
System.Management.
TTFN
Paul
--
"Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070212/1c38960b/attachment.bin
More information about the Mono-devel-list
mailing list