JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
ToolTalk User's Guide
search filter icon
search icon

Document Information

Preface

1.  Introducing the ToolTalk Service

2.  An Overview of the ToolTalk Service

3.  Message Patterns

4.  Setting Up and Maintaining the ToolTalk Processes

5.  Maintaining Application Information

6.  Maintaining Files and Objects Referenced in ToolTalk Messages

7.  Participating in ToolTalk Sessions

Including the ToolTalk API Header File

Registering with the ToolTalk Service

Registering in the Initial Session

Registering in a Specified Session

Registering in Multiple Sessions

Setting Up to Receive Messages

Sending and Receiving Messages in the Same Process

Sending and Receiving Messages in a Networked Environment

Unregistering from the ToolTalk Service

Using ToolTalk in a Multi-Threaded Environment

Initialization

ToolTalk procids and sessions

ToolTalk storage

Common Problems

8.  Sending Messages

9.  Dynamic Message Patterns

10.  Static Message Patterns

11.  Receiving Messages

12.  Objects

13.  Managing Information Storage

14.  Handling Errors

A.  Migrating from the Classing Engine to the ToolTalk Types Database

B.  A Simple Demonstration of How the ToolTalk Service Works

C.  The ToolTalk Standard Message Sets

D.  Frequently Asked Questions

Glossary

Index

Registering with the ToolTalk Service

Before you can participate in ToolTalk sessions, you must register your process with the ToolTalk service. You can either register in the ToolTalk session in which the application was started (the initial session), or locate another session and register there.

The ToolTalk functions you need to register with the ToolTalk service are shown in .

Table 7-1 Registering with the ToolTalk Service

Return Type
ToolTalk Function
Description
char *
tt_open(void)
Process identifier
int
tt_fd(void)
File descriptor
char *
tt_X_session(const char *xdisplay)
Return the session identifier of the specified X display server.
Tt_status
tt_default_session_set(const char *sessid)
Sets the session to which tt_open will connect.