Common Desktop Environment: ToolTalk Messaging Overview

ttmedia_load_reply

Tt_message				ttmedia_load_reply	(		Tt_message			contract,
 									const unsigned char *	  new_contents, 
										int						     new_len,
  									int						     reply_and_destroy
);

Use the ttmedia_load_reply() function to reply to a Media Exchange request to display, edit, or compose a document.

If both the new_contents and new_len arguments are non-zero, their value is used to set the new contents of the document in the appropriate output argument of the contract argument. If the reply_and_destroy argument is true, a reply is made to the contract argument and then the message is destroyed.

Table A-24 lists the possible errors returned.

Table A-24 Possible Errors Returned by the ttmedia_load_reply

Error Returned 

Description 

TT_ERR_NOMP

The ttsession process is not available. The ToolTalk service tries to restart ttsession if it is not running. This error indicates that the ToolTalk service is either not installed or not installed correctly. 

TT_ERR_PROCID

The process identifier specified is out of date or invalid. 

TT_ERR_NUM

 

TT_ERR_NOTHANDLER