PtConnectionFlush()

Send all pending notifications to the client

Synopsis:

int PtConnectionFlush( 
        PtConnectionServer_t *connection );

Library:

ph

Description:

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.

Returns:

0
Success.
-1
An error occurred; errno is set.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtConnectionNotify(), PtConnectionReply(), PtConnectionReplymx(), PtConnectionSend(), PtConnectionSendmx()

Connections in the Interprocess Communication chapter of the Photon Programmer's Guide