diff options
Diffstat (limited to '')
-rw-r--r-- | server/client.erl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/server/client.erl b/server/client.erl index 6c81349..03f6276 100644 --- a/server/client.erl +++ b/server/client.erl @@ -1,5 +1,5 @@ -module(client). --export([start/2, loop/2, register/2, login/2]). +-export([start/2, loop/2]). start(Node, User) -> %% start linked processes on client and server to get notice if @@ -68,12 +68,3 @@ loop(Client, User) -> Client ! {error, {unknown_command, Cmd}} end, loop(Client, User). - -register(Client, {Name, Password}) -> - %% forward the register messages to the dispatcher (if user is not - %% logged in) - dis ! {Client, {register, {Name, Password}}}. - -login(Client, {Node, Name, Password}) -> - %% forward the login messages to the dispatcher - dis ! {Client, {login, {Node, Name, Password}}}. |