Query: tt_message_receive
OS: hpux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tt_message_receive(library call) tt_message_receive(library call)NAMEtt_message_receive -- receive a messageSYNOPSIS#include <Tt/tt_c.h> Tt_message tt_message_receive(void)DESCRIPTIONThe tt_message_receive function returns a handle for the next message queued to be delivered to the process and also runs any message or pattern callbacks applicable to the queued message. If the return value of tt_message_status(3) for this message is TT_WRN_START_MESSAGE, the ToolTalk service started the process to deliver the queued message; the process must reply to this message. If the return value of tt_message_receive is zero, no message is available.RETURN VALUEUpon successful completion, the tt_message_receive function returns the handle for the message object. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned handle: TT_OK The operation completed successfully. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it.APPLICATION USAGEA zero value can occur if a message or pattern callback processes the message. It can also occur if the interval is too long between the time the file descriptor became active and the tt_message_receive call was made. In the latter case, the ToolTalk service will time out and offer the message to another process. The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API.SEE ALSOTt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3). tt_message_receive(library call)
Related Man Pages |
---|
tt_message_callback_add(3) - hpux |
tt_message_handler_ptype(3) - hpux |
tt_message_pattern(3) - hpux |
tt_message_sender(3) - hpux |
tt_pattern_create(3) - hpux |
Similar Topics in the Unix Linux Community |
---|
Script to automate a service message |