Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tt_message_fail(3) [hpux man page]

tt_message_fail(library call)											     tt_message_fail(library call)

NAME
tt_message_fail -- indicate a message cannot be handled SYNOPSIS
#include <Tt/tt_c.h> Tt_status tt_message_fail( Tt_message m); DESCRIPTION
The tt_message_fail function informs the ToolTalk service that the process cannot handle the request just received. This function also informs the ToolTalk service that the message is not be offered to other processes of the same ptype. The ToolTalk ser- vice will send the message back to the sender with state TT_FAILED. The m argument is the opaque handle for the message involved in this operation. RETURN VALUE
Upon successful completion, the tt_message_fail function returns the status of the operation as one of the following Tt_status values: TT_OK The operation completed successfully. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it. TT_ERR_NOTHANDLER This application is not the handler for this message. TT_ERR_POINTER The pointer passed does not point to an object of the correct type for this operation. The status value must be greater than TT_ERR_LAST to avoid confusion with the ToolTalk service status values. APPLICATION USAGE
To distinguish this case from the case where a message failed because no matching handler could be found, the application should place an explanatory message code in the status attribute of the message with tt_message_status_set(3) and tt_message_status_string_set(3) before calling tt_message_fail. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_message_status_set(3), tt_message_status_string_set(3). tt_message_fail(library call)

Check Out this Related Man Page

tt_message_send_on_exit(library call)									     tt_message_send_on_exit(library call)

NAME
tt_message_send_on_exit -- set up a message to send upon unexpected exit SYNOPSIS
#include <Tt/tt_c.h> Tt_status tt_message_send_on_exit( Tt_message m); DESCRIPTION
The tt_message_send_on_exit function requests that the ToolTalk service send this message if the process exits unexpectedly. The message is sent to the ToolTalk service, which queues the message internally until either of two events occur: 1. The procid that sent the tt_message_send_on_exit message to the ToolTalk service calls tt_close(3). In this case, the queued message is deleted. 2. The connection between the ttsession(1) server and the process that sent the tt_message_send_on_exit message to the ToolTalk service is broken; for example, if the application has crashed. In this case, the ToolTalk service matches the queued message to its patterns and delivers it in the same manner as if the process had sent the message normally before exiting. If a process sends a normal termination message but exits without calling tt_close(3), both the normal termination message and the on_exit message are delivered. The m argument is the opaque handle for the message involved in this operation. RETURN VALUE
Upon successful completion, the tt_message_send_on_exit function returns the status of the operation as one of the following Tt_status val- ues: TT_OK The operation completed successfully. TT_ERR_ADDRESS The specified Tt_address is invalid. TT_ERR_CLASS The specified Tt_class is invalid. TT_ERR_FILE The specified file does not exist or it is inaccessible. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it. TT_ERR_OBJID The objid passed to the ToolTalk service does not reference an existing object spec. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_close(3). tt_message_send_on_exit(library call)
Man Page