Function: ScheduleRead Purpose: Register a function to be called whenever data is available on a specified file descriptor. Category: SYSTEM File: events.src Author: J.P. Terlouw Use: #include "events.h" ident id; id = ScheduleRead(proc, fd, arg); void(*proc)() - pointer to function. int fd - file descriptor. void *arg - 'client' data Description: ScheduleRead registers a function to be called by MainLoop whenever data can be read from file descriptor 'fd'. In this call, 'arg' will be passed to 'proc'. The return value is a unique identification code corresponding with the registration, which will also be passed as an argument to 'proc'. The prototype of 'proc' is: void proc(ident id, int fd, void *arg); Related Docs: events.dc3, ScheduleWrite.dc3, ScheduleTimer.dc3, Deschedule.dc3, DescheduleAll.dc3, MainLoop.dc2, AttachXt.dc2. Updates: Apr 8, 1997: JPT Document created.