Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 8
Send a notification event to the client
int PtConnectionNotify(
PtConnectionServer_t *connection,
unsigned long type,
void const *message,
unsigned length,
unsigned flags );
ph
This function sends an event notification to the client. The
possible values of flags include:
- Pt_CONNECTION_NOTIFY_NOFLUSH
- Unless you set this flag, PtConnectionNotify() calls
PtConnectionFlush()
if there isn't enough room for the notification in the buffer.
- Pt_CONNECTION_NOTIFY_RESIZE
- Resize the buffer if necessary.
- Pt_CONNECTION_NOTIFY_FLUSH
- If you set this flag, PtConnectionNotify() calls
PtConnectionFlush() after appending the notification to the
buffer.
If the server sets both Pt_CONNECTION_NOTIFY_RESIZE and
Pt_CONNECTION_NOTIFY_NOFLUSH, it might run out
of memory if the client is slow or unresponsive. If you do set both bits,
make sure that your protocol prevents you from sending too many
notifications. (For example, require the client to send an
acknowledgment for each received notification, and don't send a
new notification unless the previous one has been acknowledged.)
- 0
- Success.
- -1
- An error occurred; errno is set.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtConnectionAddEventHandlers(),
PtConnectionAddMsgHandlers(),
PtConnectionFlush(),
PtConnectionReply(), PtConnectionReplymx(),
PtConnectionResizeEventBuffer(),
PtConnectionSend(), PtConnectionSendmx()
“Connections”
in the Interprocess Communication chapter of the
Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 142
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptconnectionnotify.html on line 142