Send all pending notifications to the client
int PtConnectionFlush( PtConnectionServer_t *connection );
ph
This function waits for a message from the client and sends all the pending notifications in the reply. If there are no notifications to be sent, the function doesn't wait.
This function may process Photon events or other messages while waiting for the message from the client. If a received Photon event invokes a callback that calls PtConnectionFlush() on the same connection again, the second call fails with errno set to EBUSY.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtConnectionNotify(), PtConnectionReply(), PtConnectionReplymx(), PtConnectionSend(), PtConnectionSendmx()
“Connections” in the Interprocess Communication chapter of the Photon Programmer's Guide