ToolTalk User's Guide

Registering a Message Pattern

To register the completed pattern, use the tt_pattern_register() function. After you register your pattern, you join the sessions or files of interest.

The following code sample creates and registers a pattern.

	 * Create and register a pattern so ToolTalk 
 * knows we are interested
	 * in “ttsample1_value” messages within 
 * the session we join.

	pat = tt_pattern_create();
	tt_pattern_category_set(pat, TT_OBSERVE);
	tt_pattern_scope_add(pat, TT_SESSION);
	tt_pattern_op_add(pat, “ttsample1_value”);