tt_ptype_opnum_callback_add man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

tt_ptype_opnum_callback_add(3)ToolTalk Functionstt_ptype_opnum_callback_add(3)

NAME
       tt_ptype_opnum_callback_add - return a callback if two opnums are equal

SYNOPSIS
       #include <Tt/tt_c.h>
       Tt_status tt_ptype_opnum_callback_add(const char *ptid,
					     int opnum,
					     Tt_message_callback f);

DESCRIPTION
       The  tt_ptype_opnum_callback_add()  function  returns a callback if the
       specified opnums are equal.  The callback is defined in <Tt/tt_c.h>.

       When a message is delivered because it matched a pattern derived from a
       signature  in the named ptype with an opnum equal to the specified one,
       the given callback is run in the usual ToolTalk way.

       The ptid argument is the identifier of the ptype involved in this oper‐
       ation.	The opnum argument is the opnum of the specified ptype.	 The f
       argument is the message callback to be run.

RETURN VALUE
       Upon successful completion, the tt_ptype_opnum_callback_add()  function
       returns	the  status of the operation as one of the following Tt_status
       values:

	  TT_OK	  The operation completed successfully.

	  TT_ERR_PTYPE
		  The specified process type is not the name of	 an  installed
		  process type.

	  TT_ERR_POINTER
		  The  pointer	passed does not point to an object of the cor‐
		  rect type for this operation.

	  TT_ERR_NOMP
		  The ttsession(1) process is not  running  and	 the  ToolTalk
		  service cannot restart it.

APPLICATION USAGE
       The tt_ptype_opnum_callback_add() function will only be called for mes‐
       sages delivered by virtue of matching handler signatures.  The callback
       cannot  be called for observer signatures because the observer ptype is
       not recorded in the incoming message.

SEE ALSO
       tt_c(5).

ToolTalk 1.3			 1 March 1996	tt_ptype_opnum_callback_add(3)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net