Contenu connexe
Similaire à Open Telecomunication Platform (OTP)
Similaire à Open Telecomunication Platform (OTP) (20)
Plus de Christophe Marchal
Plus de Christophe Marchal (20)
Open Telecomunication Platform (OTP)
- 13. 2> application:load(echo).
ok
3> application:loaded_applications().
[{echo,"A dummy echo server with a simple slang detection :p", "0.0.1"},
{kernel,"ERTS CXC 138 10","2.14.3"},
{sasl,"SASL CXC 138 11","2.1.9.3"},
{stdlib,"ERTS CXC 138 10","1.17.3"}]
4> application:start(echo).
Starting supervisor.
Alarm handler switched.
Supervisor configuration:
{ok, {{one_for_one, 3, 10}, [{echo_server1,
{echo_server,start_link,[]},
permanent,5000,worker,[echo_server]}]}}
echo_server starting
ok
5> echo_server:echo("fuck you son of a bitch").
=INFO REPORT==== 12-Aug-2012::18:26:23 ===
Don't send slangs mother fucker!
=INFO REPORT==== 12-Aug-2012::18:26:23 ===
Don't send slangs son of a bitch!
"fuck you son of a bitch"