XSocket API  2.0
XIA Socket Library
Functions
Xnotify.c File Reference

Xnotify() - get notification of network changes. More...

#include "Xsocket.h"

Functions

int Xnotify (void)
 Block waiting for notification that the network interface has changed state. More...
 

Function Documentation

int Xnotify ( void  )

Blocks and waits for for click to return a status when the joining daemon changes the AD or other network parameters. Multiple applications or threads may call this API, and all will be nofitied when a change occurs.

DO NOT call Xfork while blocking on this function. Only one of the processes will properly recieve the notification.

WARNING, THIS IS A STOPGAP API THAT WILL BE REPLACED ONCE WE DETERMIN WHAT THE LONGERM NOTIFICATION MECHANISM LOOKS LIKE. BE PREPARED FOR THIS CALL TO BE DEPRECATED OR MODIFIED

Returns
0 on success
-1 on error with errno set