• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..13-Apr-2021-

MakefileH A D13-Apr-20211.8 KiB8825

ReadMeH A D13-Apr-2021916 4722

client.cH A D13-Apr-20213.1 KiB13275

random.idlH A D13-Apr-2021992 5332

rmod_random_impl.erlH A D13-Apr-20211.2 KiB5425

test.erlH A D13-Apr-20211,008 459

ReadMe

1This is a short description on the use of the c-client demo,
2a client that initiates and uses a random number generator
3that lies on an  Erlang-genserver.
4
5Instructions.
6
71) On Makefile :
8   * Modify the OTPROOT variable on the Makefile to point
9     to the root for your erlang instalation.
10   * Modify IC and Erl_Interface versions to agree your
11     OTP version.
12
132) Type "make" to build the example.
14
15
163) Start erlang with the options
17        -setcookie <Some Cookie> -sname <SomeNodeName>
18
19   In this example you should use :
20
21    erl	-setcookie flash -sname babbis
22
23
244)  On the erlang shell type :
25    --------------------------
26
27    rmod_random:oe_create([],{local,rmod_random_impl}). ( initializes the server )
28
29    or
30
31    test:start().
32
33
34    Then start a new terminal window and type :
35    -------------------------------------------
36
37    client                              ( calls the client )
38
39
40
41
42
43
44
45
46
47