This is a short description on the use of the c-client demo,
a client that initiates and uses a random number generator
that lies on an  Erlang-genserver.

Instructions.

1) Modify the OTPROOT variable on the Makefile to point
   to the root for your erlang instalation.

2) Start erlang with the options
        -setcookie <Some Cookie> -sname <SomeNodeName>

   ( If you have an OTP vesion upp to  4.7.1 then you are
     using a compiler patch and you must also add an
     option for the specific directory for your compiler patch :

    ex :

     erl -pa /tmp/lib/ic-2.5a1/ebin -setcookie flash -sname babbis )  

   In this example you should use :

    erl	-setcookie flash -sname babbis

   
   Continue with either  3A) or 3B)

3A) 
    On the erlang shell type :
    --------------------------

    ic:gen(random,[{be,erl_genserv}]).  ( generates the gen server code )

    ic:gen(random,[{be,c_client}]).     ( generates the c-client code )

    make:all().                         ( compiles the erlang code )

    rmod_random:oe_create([],{local,rmod_random_impl}). ( initializes the server )


    Then start a new terminal window and type :
    ------------------------------------------- 

    make                                ( compiles all c code )

    client                              ( calls the client )


3B) (= easy way to make things work )

    On the erlang shell type :
    --------------------------

    c(test).                            ( compiles the erlang test file )

    test:run().                         ( generates and compiles all code 
                                          and initiates the gen server )

    test:exec().                        ( runs the client program from erlang )
    








