Change the mode that's of interest to an FD handler
int PtAppSetFdMode( PtAppContext_t app, int fd, unsigned mode );
This function changes the mode that's of intereset to the handler for the given file descriptor, fd.
The app argument is the address of the application context, a structure that manages all the data associated with this application. For Photon 1.1x, this must be specified as NULL, so that the default context is used.
The mode argument defines what kind of conditions the application is interested in:
These values correspond to conditions defined for the ionotify() or select() functions. You can OR the values together.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtAppAddFd(), PtAppAddFdPri(), PtAppRemoveFd()
"Other I/O mechanisms" in the Interprocess Communication chapter of the Photon Programmer's Guide