locate_task_id
locate_task_id — finds and connects to tasks by task ID and network
node.
locate_task_id (task_id, node_id, channel_id, async_reqd)
task_idThe task ID for this task (as a number).
node_idThe network node number for this task.
channel_idThe task ID for this task. This is required for QNX 6, ignored in QNX 4 and Linux.
async_reqdt if
locate_task should automatically call
init_async_ipc for this task.
A task if successful, otherwise nil.
This function makes a TCP/IP connection or QNX 4 virtual circuit to the
named task based on the task_id and the
node number on which the task is running. If
async_reqd is t, then
init_async_ipc is also called. If the
node number is zero, the current node is used.
Task 1:
Gamma>init_ipc("Task 1","14");tGamma>getpid();9271Gamma>
Task 2:
Gamma>init_ipc("Task 2","25");tGamma>locate_task_id(9271,1,nil);#<Task:9271>Gamma>