Buggfixes in server and network.

This commit is contained in:
Kallfaktorn 2011-02-04 14:58:21 +01:00
parent ffeaa3bdc1
commit ea4fdfc362
2 changed files with 13 additions and 15 deletions

View file

@ -22,7 +22,8 @@
% export
-export([start_link/0,start_link/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2]).
-export([get_count/1,crash/0,vms/0,hello/0,echo/0]).
%-export([get_count/1,crash/0,vms/0,hello/0,echo/0]).
-export([get_count/1]).
-export([send/3, send/4]).
-export([stop/0]).
@ -62,10 +63,10 @@ init([Port]) ->
get_count(get_count) ->
gen_server:call(?SERVER, get_count).
crash() -> gen_server:call(?server, _crash).
vms() -> gen_server:call(?SERVER, _vms).
hello() -> gen_server:call(?SERVER, _hello).
echo() -> gen_server:call(?SERVER, {_echo, RefID, _, MSG}).
%crash() -> gen_server:call(?SERVER, crash).
%vms() -> gen_server:call(?SERVER, vms).
%hello() -> gen_server:call(?SERVER, hello).
%echo() -> gen_server:call(?SERVER, {echo, RefID, _, MSG}).

View file

@ -10,12 +10,9 @@
-import(ggs_network).
%% API
-export([start/0,
start/1,
get_count/0,
stop/0
]).
-export([start/0, start/1, stop/0 ]).
%-export([crash/0, vms/0, hello/0, echo/0]).
-export([get_count/0]).
%%%====================================================
@ -43,10 +40,10 @@ start(Port) ->
get_count() ->
ggs_network:get_count(get_count).
_crash() -> gss_network:crash().
_vms() -> gss_network:vms().
_hello() -> gss_network:hello().
_echo() -> gss_network:echo().
%crash() -> gss_network:crash().
%vms() -> gss_network:vms().
%hello() -> gss_network:hello().
%echo() -> gss_network:echo().
%%-----------------------------------------------------
%% @doc Stops the server.