summaryrefslogtreecommitdiff
path: root/TAO/examples/Advanced/ch_3/README
blob: e74eeb9bdf11db9b33384d1d572f39a78b528ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$Id$

Chapter 3 example.
______________________________________________________________________________
This example been taken from the book "Advanced CORBA Programming with C++" 
by Michi Henning and Steve Vinoski. Copyright 1999. Addison-Wesley, Reading, 
MA.  To make the examples work with TAO, some minor modifications to the 
source code have been made, with permission, by Mike Moran <mm4@cs.wustl.edu>.
All of these changes are documented in the file CHANGES, in this directory.
______________________________________________________________________________


Summary:
    This is the simple time server given in chapter 3 of the book.
    There is a server process which holds a servant object which can return 
    the current Greenwich time, and a client process which can acess this 
    object.

Building:
    This example must be built with native C++ exceptions, and with an ACE/TAO 
    build with exceptions.  Make sure to use TAO_FLAG Ge=0 to ensure
    that CORBA::Environment variables are not created in the IDL generated 
    stubs and skeletons.

    With GNU make, simply type 
                            
    % make exceptions=1

    to create the executable server and client

server:
    The server takes no parameters nor command line options and returns an 
    IOR to stdout.  The server then waits infinitely for clients requests.

client:
    The client takes an IOR from the command line, prints out the current 
    time, and terminates.

run_test.pl:
    This is currently a UNIX only script!  It starts up the server, redirecting
    stdout to a file, then passes the file's contents to the command line of
    the client.  After the client terminates, the server is killed.