This is a short description on the use of the client demo,
a client that initiates and uses a random number generator
that lies on a C-server.

Instructions.

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

2) Start erlang 

   ( If you have an OTP vesion upp to  4.7.3 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-3.1.1/ebin  )  


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

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

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

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


    Exit erlang and type :
    ---------------------- 

    make                                ( compiles all c code )

    server                              ( starts the c-server )


    To test the c-client against the c-server start a new terminal window and type :
    --------------------------------------------------------------------------------

    client                              ( calls the server )


    To test the erlang-client against the c-server start a new terminal window and type :
    -------------------------------------------------------------------------------------


    erl -sname client -setcookie flash  ( start erlang )

    make:all().                         ( compile erlang files )

    client:init(1,2,3).                 ( initiates the random generator )

    client:produce().                   ( calls the random generator )
	



   




   
