Some simple ORB examples are available to show the basic usage of TAO:
The example has a module Bank with two interfaces Account and AccountManager. The example demonstrates:
A simple chat application that consists of a client and server programs. The server broadcasts messages from one client to all the clients registered with it. The client(s) register with a running server. It has a very simple user interface that accepts strings from the user and sends it across to the server. The client code also demonstrates the use of the ACE_Event_Handlerclass to accept user input events.
The example has an object (Echo) with only two methods; one that returns the message to be displayed and another that shuts down the server.
The example makes a grid of user defined size. The grid can be imagined as a matrix with cells that can hold values. The example creates a simple grid server with user defined sizes. If the user does not define the size a default grid is created. The user can give a value to be held in the grid.
The example has an object (Time) with two methods; one that returns the current time of day and another that shuts down the server.
These instructions are based on the Solaris gcc3.2 compiler makefiles.
ACE_ROOT=<TAO install dir>; export ACE_ROOT
TAO_ROOT=<TAO install dir>; export TAO_ROOT
LD_LIBRARY_PATH=$TAO_ROOT/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
PATH=$PATH:$TAO_ROOT/bin; export PATH
INSLIB=$TAO_ROOT/lib; export INSLIB
PATH=/usr/local/gcc-3.2/bin:/usr/ccs/bin:$PATH; export PATH
LD_LIBRARY_PATH=/usr/local/gcc-3.2/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
<TAO install dir>/examples/TAO
directory.
gmake
command to run the makefile. This will compile all of the examples.
TAO_ROOT=<TAO install dir>
, where
<TAO install dir>
is the location into which you have installed TAO.
ACE_ROOT=<TAO install dir>
, where
<TAO install dir>
is the location into which you have installed TAO.
<TAO install dir>\examples\TAO\examples.dsw
. Double-click on the project file to load
it into
Microsoft Visual C++. When loaded, change the Common project from debug
mode to release mode using the Build | Set Active Configuration menu option.