Before your application can receive messages, it must join a ToolTalk session and register the message patterns that are to be matched.
// Join a ToolTalk session and register patterns and default callbacks sessPats = ttdt_session_join( 0, 0, session_shell, this, 1 ); }