Motorola 6806800C47B ユーザーズマニュアル
A
Checkpoint Service Programmer’s Reference (6806800C47B)
23
A
Sample Application
A.1
Overview
The sample application provided here consists of two application processes that use the
Checkpoint service APIs to ‘write’ to a checkpoint, and ‘read’ the checkpoint data written by the
first application process.
Checkpoint service APIs to ‘write’ to a checkpoint, and ‘read’ the checkpoint data written by the
first application process.
A.2
Run the Checkpoint Service Demo
This sample application assumes that the NCS software is installed and running on the target
system. Refer to the Avantellis 3000 Series Rel. 3.0 User’ s Guide for information on how to
install the NCS software.
system. Refer to the Avantellis 3000 Series Rel. 3.0 User’ s Guide for information on how to
install the NCS software.
Running the demo application:
To run the checkpoint service demo, follow the steps given here:
1. Build the sample program to create the executable file cpsv_demo.out.
(Refer to
section - A.4.2 "Make" Commands of the NetPlane Core Services Overview User’s
Guide, Part Number: 6806800C08 for more details)
Guide, Part Number: 6806800C08 for more details)
2. Copy the executable file to the target. (Refer to section - A.4.2 "Make" Commands
of the NetPlane Core Services Overview User’s Guide, Part Number: 6806800C08
for more details)
for more details)
3. Open two terminals, and change to the directory where the executable
cpsv_demo.out
is copied.
4. Execute the following command in the first terminal. This application process will act
as “MESSAGE-WRITER”../cpsv_demo.out 1
5. Execute the following command in the second terminal. This application process will
act as “MESSAGE-READER”. ./cpsv_demo.out 0.
The output will be displayed on both the terminals. Refer "
" of this document.
Ensure the cpsv_demo.out has executable permission. To give executable
permission, use the following command:
permission, use the following command:
chmod +x cpsv_demo.out