ToolTalk User's Guide

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.

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.