For Programmers: Free Programming 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-21, 10:05 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,
--

Moencetard

2007-06-22, 4:10 pm

Halle Berry strips of pantyhose!

http://www.YourTubeAmp.com/player.wmv?watch=1673286
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com