ToolTalk User's Guide

Message Pattern Attributes

The attributes in your message pattern specify the type of messages you want to receive. Although some attributes are set and have only one value, you can supply multiple values for most of the attributes you add to a pattern.

Table 3–1 provides a complete list of attributes you can put in your message patterns.

Table 3–1 ToolTalk Message Pattern Attributes

Pattern Attribute 

Value 

Description 

Category 

TT_OBSERVE TT_HANDLE TT_HANDLE_PUSH TT_HANDLE_ROTATE

Declares whether you want to perform the operation listed in a message or only observe a message. 

Scope 

TT_SESSION TT_FILE TT_FILE_IN_SESSION TT_BOTH

Declares interest in messages about a session or a file, or both; Join a session or file after the message pattern is registered to update the sessid and filename. 

Arguments 

arguments or results 

Declares the positional arguments for the operation in which you are interested. 

Context 

<name, value> 

Declares the keyword or non-positional arguments for the operation in which you are interested 

Class 

TT_NOTICE TT_REQUEST TT_OFFER

Declares whether you want to receive notices, requests, offers, or all. 

File 

char *pathname

Declares the files in which you are interested. If the scope of the pattern does not require a file, the file is an attribute only. 

Object 

char *objid

Declares what objects in which you are interested. 

Operation 

char *opname

Declares the operations in which you are interested. 

Otype 

char *otype

Declares the type of objects in which you are interested. 

address 

TT_PROCEDURE TT_OBJECT TT_HANDLER TT_OTYPE

Declares the type of address in which you are interested. 

disposition 

TT_DISCARD TT_QUEUE TT_START TT_START+TT_QUEUE

Instructs the ToolTalk service how to handle messages to your application if an instance is not currently running. 

sender 

char *procid

Declares the sender in which you are interested. 

sender_ptype 

char *ptype

Declares the type of sending process in which you are interested. 

session 

char *sessid

Declares the session in which you are interested. 

state 

TT_CREATED TT_SENT TT_HANDLED TT_FAILED TT_QUEUED TT_STARTED TT_REJECTED TT_RETURNED TT_ACCEPTED TT_ABSTAINED

Declares the state of the message in which you are interested. 

All your message patterns must at least specify:

The ToolTalk service compares message attributes to pattern attributes as follows: