Task Started and Stopped Messages

Cogent API and Utilities: Version 4.1
Prev | Chapter 4. The Cascade NameServer | Next

# 4.3. Task Started and Stopped Messages

nserve automatically transmits a message to all tasks that have a queue whenever another task registered with nserve starts or stops. This mechanism makes it very simple for user tasks to respond to changes in the system. For example, a user task may want to know when a datahub for a particular domain has started in order to register for exceptions from some or all of its points. These messages will be transmitted to the user task with a message type of `IP_ASYNC` and a command of `ST_LISP_MSG`. When a task starts or stops, nserve will send a message to all other registered tasks on the network as: `(taskstarted name queue domain node pid)`, or `(taskdied name queue domain node pid)`.

Prev | Home | Next
Locating Other Tasks on the Network | Up | Communicating with the Cascade DataHub

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.