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_
aiooua

2007-06-20, 1:26 pm

> 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)


Thanks for the suggesting NetworkManager. I'll try looking at the
source code and see how it obtains this information internally.

However, I'm looking for a solution that works across all Unix-es. On
Windows here's what I do:

1. Create a socket.
2. Invoke WskIoctl to enable SIO_ADDRESS_LIST_CHANGE flag on the
socket.
3. Block on WSAEventSelect with the FD_ADDRESS_ LIST_CHANGE

I'm looking for a similar set of ioctl and select operations for Unix.

thanks,
--

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com