Learning to Use CORBA With ORBit-0.5.3
Revision 1.1: November 14, 2000
Jim Peterson
Introduction:
Some Details:
Using ORBit:
Basic IDL:
Adding Our Code to the Implementation Skeleton:
The Server Code
Writing the Client Code:
Running The Simulation:
Cleaning Up:
A Calculator in ORBit:
The Calculator Interface File: Calculator.idl
The Generated Code:
Calculator.h:
Calculator-common.c:
Calculator-stubs.c:
Calculator-skels.c:
Calculator-skelimpl.c
The Implementation:
Adding Or Implementation Code: Generated-skels.c
Our Server: server.c
OurClient: client.c
Runtime:
Using the Factory pattern:
The Calculator Interface Again:
The Calculator Interface File:
The Generated Implementation Skeletons:
The Modified Implementation Code: Generated-skels.c
The Name Utility Function:
The Server Code: server2.c
The Client Code: client2.c
Some Run Time Results:
Using Multiple Factories:
Getting the Name Server:
The Display Interface:
The Display Interface File:
The Implementations:
The Modified Implementation Code: Generated-skels.c
The Name Utility Function:
The Server Code: server2.c
The Client Code: client2.c
Some Run Time Results:
Using Sequences:
The Display2 Interface File:
In The Implementation:
Customize our servant structures:
Initialize Sequences Properly:
Out Sequence Variables:
Full Implementation Code:
The Modified Implementation Code: Generated-skels.c
The Server Code: server2.c
The Client Code: client2.c
What Really Happens in the Client/ Server?
The Server Code:
Initialization:
Create the MyTimeFactory object:
Create the CircleFactory object:
Create the TriangleFactory Object:
Name Service Binding:
Server Details:
The Client Code:
Initialization:
Resolve fac_mytime:
Resolve fac_circle:
Resolve fac_triangle:
Resolve fac_rectangle:
Construct the MyTime Object:
Construct the Circle Object:
Construct the Triangle Object:
Construct the Rectangle Object:
Using the Triangle Object Methods:
Set Triangle Position:
Translate Triangle Position:
Rotate Triangle Position:
Read the Triangle Position:
Client Details:
Annotated References:
This document was tranlated from L
A
T
E
X by
H
E
V
E
A and H
A
C
H
A
.