Unix Programming - Re: a trigger for changes to network interfaces (equivalent of WSAEventSelect with FD_

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2007 > Re: a trigger for changes to network interfaces (equivalent of WSAEventSelect with FD_





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: a trigger for changes to network interfaces (equivalent of WSAEventSelect with FD_
Maxim Yegorushkin

2007-06-20, 1:26 pm

On 20 Jun, 15:03, aiooua <aio...@gmail.com> wrote:
> Hi,
>
> Is there a way to register a socket descriptor with select, so that
> one gets notified every time the underlying network interfaces change.
> On Windows, I can use WSAEventSelect with FD_ADDRESS_ LIST_CHANGE to
> receive notification of local address list changes for the address
> family of the socket. What's the Unix equivalent for the same
> functionality?
>
> In general, is there a way to get triggered when the underlying
> network connectivity changes?


For Linux, you could look at NetworkManager, which provides this kind
of notifications via dbus.
http://people.redhat.com/dcbw/Netwo...chitecture.html (please
follow "Read the NetworkManager API documentation" link)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com