Change the mode that's of interest to an FD handler
int PtAppSetFdMode( PtAppContext_t app, int fd, unsigned mode );
ph
This function changes the mode that's of interest to the handler for the given file descriptor, fd. You'll use an FD function when using pipes in a Photon application.
The app argument is the address of the application context, a structure that manages all the data associated with this application. 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