Rtr C Programming Interface - HP Reliable Transaction Router Getting Started

Reliable transaction router
Table of Contents

Advertisement

Example 4–6 Starting RTR with the C++ API
//Start RTR.
RTR rtr;
rtr.Start();
Example 4–7 Creating a Facility with the C++ API
//Create facility named "myFacility".
RTRFacilityManager FacMgr;
rtr_status_t sts = FacMgr.CreateFacility("myFacility",
Example 4–8 Creating a Partition with the C++ API
//Create a partition named "myPartition" in facility "myFacility."
int low = 100;
int max = 199;
RTRKeySegment Key100To199( rtr_keyseg_unsigned,
RTRPartitionManager PartitionMgr;
sts = PartitionMgr.CreateBackendPartition( "myPartition",
You can use the C programming interface to write C applications
RTR C
that use RTR. For more information on the C programming
Programming
interface, refer to the HP Reliable Transaction Router C
Interface
Application Programmer's Reference Manual and the HP Reliable
Transaction Router Application Design Guide.
Snippets from client and server programs using the RTR C-
programing API follow and are more fully shown in the HP
Reliable Transaction Router Application Design Guide.
Application Programming Interfaces
"router",
"frontend",
"backend",
false,
false) ;
sizeof(int),
0,
&low,
&max );
"myFacility",
Key100To199,
false,
false) ;
RTR Interfaces 4–21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aa-rle1c-te

Table of Contents