aboutsummaryrefslogtreecommitdiffstats
path: root/remote.erl
diff options
context:
space:
mode:
Diffstat (limited to 'remote.erl')
-rw-r--r--remote.erl22
1 files changed, 0 insertions, 22 deletions
diff --git a/remote.erl b/remote.erl
deleted file mode 100644
index 793c27c..0000000
--- a/remote.erl
+++ /dev/null
@@ -1,22 +0,0 @@
--module(remote).
--export([start/0, calculate/1]).
-
-rpc(C) ->
- rechner ! {self(), C},
- receive
- {rechner, Reply} ->
- Reply
- end.
-
-loop() ->
- receive
- {From, {calculate, String}} ->
- From ! {rechner, calc:eval(String)},
- loop()
- end.
-
-start() ->
- register(rechner, spawn(fun() -> loop() end)).
-
-calculate(String) ->
- rpc({calculate, String}).