#include <srmv2-event.h>
int srm_create_timer_handler(milliseconds, proc,
clientData)
void srm_delete_timer_handler(token)
- int milliseconds (in)
-
How many milliseconds to wait before invoking proc.
- TimerProc *proc (in)
-
Procedure to invoke after milliseconds have elapsed.
- void* clientData (in)
-
Arbitrary one-word value to pass to proc.
- int token (in)
-
Token for previously-created timer handler (the return value
from some previous call to create_time_handler).
void srm_create_file_handler(fd, mask, proc,
clientData)
void srm_delete_file_handler(fd)
- int fd (in)
-
Unix file descriptor for an open file or device.
- int mask (in)
-
Conditions under which proc should be called:
OR-ed combination of READABLE, WRITABLE,
and EXCEPTION. May be set to 0 to temporarily disable
a handler.
- FileProc *proc (in)
-
Procedure to invoke whenever the file or device indicated
by file meets the conditions specified by mask.
- void* clientData (in)
-
Arbitrary one-word value to pass to proc.