-
Notifications
You must be signed in to change notification settings - Fork 0
philip-clarke/s_server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple OTP application to test out some of OTP's features The s_server module is a gen_server which will respond with pong when it receives a ping To run the application, start erlang shell with: erl -pa ebin and in the shell enter 1> application:start(s_server). ok 2> s_server:ping(). pong You can enter the shell command regs(). to get a list of all registered processes which will include s_server and s_server_sup %% Running tests To test the s_server use rebar from the command line ./rebar eunit %% Analyse using dialyzer export ERL_TOP=~/Packages/otp % Create persistent lookup table from the relevant OTP applications dialyzer --build_plt -r . $ERL_TOP/lib/stdlib/ebin $ERL_TOP/lib/kernel/ebin $ERL_TOP/lib/eunit/ebin % create PLT from my own code and output it to s_server.plt dialyzer --add_to_plt -r . --output_plt s_server.plt # do the analysis dialyzer --plt s_server.plt -r .
About
Basic OTP application
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published