]]>
]]>
tt_fd
library call
tt_fd
return a file descriptor
#include <Tt/tt_c.h>
int tt_fd
DESCRIPTION
The
tt_fd function
returns a file descriptor.
The returned file descriptor alerts the process that a message has
arrived for the default
procid
in the default session.
File descriptors are either active or inactive.
When the file descriptor becomes
active, the process must call
&cdeman.tt.message.receive; to receive the message.
RETURN VALUE
Upon successful completion, the
tt_fd function returns the file descriptor for the current
procid.
The application can use
&cdeman.tt.int.error; to extract one of the following
Tt_status values from the returned integer:
TT_OK
The operation completed successfully.
TT_ERR_NOMP
The
&cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
TT_ERR_PROCID
The current default process identifier is out of date or invalid.
TT_ERR_SESSION
The specified ToolTalk session is out of date or invalid.
APPLICATION USAGE
The application must have a separate file descriptor for each
procid.
To get an
associated file descriptor, the application should use
tt_fd each time it calls
&cdeman.tt.open;.
SEE ALSO
&cdeman.Tt.tt.c.h;, &cdeman.tt.open;, &cdeman.tt.int.error;, &cdeman.tt.message.receive;.