ToolTalk User's Guide

How can a process connect to more than one session?

Table D–3 describes several default variables that are used when communicating with the ToolTalk service.

Table D–3 Some Default Variables

Variable 

Description 

procid

Set by tt_open. This variable identifies the client to ttsession.

ptype

Set by tt_ptype_declare.

file

Set when you join a file. If no file is set in the message, the file attribute is set to the default file.  

If you use the API functions for getting and setting the procid, your application can switch between multiple sessions. For example,

connect to session 1
store the default procid in filename
connect to session 2,
store the default procid filename
restore associated default procid
interact with particular_session


Note –

The default file and ptype are part of the current default procid. Changing the default procid also changes the default file and ptype to the default file and ptype associated with that procid.