# @(#)37        1.3  src/examples/pubsex/greet/greet_cds/readme, examples.src, os2dce21.dss, 960602a.1 5/12/96 10:09:01
#
#   COMPONENT_NAME: examples.src
#
#   FUNCTIONS: readme
#
#   ORIGINS: 27
#
#
# (C) COPYRIGHT International Business Machines Corp. 1992, 1994
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#############################################################################

Steps to build and run the DCE greet-cds example program:
---------------------------------------------------------

1.- Under AIX issue the make command to build DCE greet-cds.
    Under OS/2 issue, refer to the main Examples Readme file in
    opt\dcelocal\examples for information on how to build
    this example.

2.- Use cdscp to create the entry /.:/servers if it doesn't already
    exist.  You must be dcelogin as cell_admin for this step.
    You can verify that the entry exists with:

    ---> cdscp show directory /.:/servers

    You can create the entry with:

    ---> dcelogin cell_admin -dce-
    ---> cdscp create directory /.:/servers

3.- To run the greet-cds server type "greet greet" at the
    command line. Proceed to the next step when the "Listening..."
    message is issued by the server.

    ---> greet greet

4.- To run the greet-cds client type "client greet <passes>" at the
    command line.
    <passes> is the number of passes that the client is to do.
    The client/server greeting message will be displayed by both client
    and server the number of times indicated by <passes>.

    ---> client greet 5

5.- Use Ctrl-C to end the server when all demo runs are done.


Server Output:
--------------

Server greet bindings:
ncadg_ip_udp:129.35.65.165[1759]
Listening...
The client says: Hello Server !
The client says: Hello Server !
The client says: Hello Server !
The client says: Hello Server !
The client says: Hello Server !


Client Output:
--------------

Server name: greet
Client bound to server greet at ncadg_ip_udp:129.35.65.165[]

The Greet Server said: Hi client !
The Greet Server said: Hi client !
The Greet Server said: Hi client !
The Greet Server said: Hi client !
The Greet Server said: Hi client !


For further information on this example see the DCE Application Development
Guide.
