Buggfixes in server and network.
This commit is contained in:
parent
ffeaa3bdc1
commit
ea4fdfc362
2 changed files with 13 additions and 15 deletions
|
@ -22,7 +22,8 @@
|
||||||
% export
|
% export
|
||||||
-export([start_link/0,start_link/1]).
|
-export([start_link/0,start_link/1]).
|
||||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2]).
|
-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([send/3, send/4]).
|
||||||
-export([stop/0]).
|
-export([stop/0]).
|
||||||
|
|
||||||
|
@ -62,10 +63,10 @@ init([Port]) ->
|
||||||
get_count(get_count) ->
|
get_count(get_count) ->
|
||||||
gen_server:call(?SERVER, get_count).
|
gen_server:call(?SERVER, get_count).
|
||||||
|
|
||||||
crash() -> gen_server:call(?server, _crash).
|
%crash() -> gen_server:call(?SERVER, crash).
|
||||||
vms() -> gen_server:call(?SERVER, _vms).
|
%vms() -> gen_server:call(?SERVER, vms).
|
||||||
hello() -> gen_server:call(?SERVER, _hello).
|
%hello() -> gen_server:call(?SERVER, hello).
|
||||||
echo() -> gen_server:call(?SERVER, {_echo, RefID, _, MSG}).
|
%echo() -> gen_server:call(?SERVER, {echo, RefID, _, MSG}).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,9 @@
|
||||||
-import(ggs_network).
|
-import(ggs_network).
|
||||||
|
|
||||||
%% API
|
%% API
|
||||||
-export([start/0,
|
-export([start/0, start/1, stop/0 ]).
|
||||||
start/1,
|
%-export([crash/0, vms/0, hello/0, echo/0]).
|
||||||
get_count/0,
|
-export([get_count/0]).
|
||||||
stop/0
|
|
||||||
]).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%%%====================================================
|
%%%====================================================
|
||||||
|
@ -43,10 +40,10 @@ start(Port) ->
|
||||||
get_count() ->
|
get_count() ->
|
||||||
ggs_network:get_count(get_count).
|
ggs_network:get_count(get_count).
|
||||||
|
|
||||||
_crash() -> gss_network:crash().
|
%crash() -> gss_network:crash().
|
||||||
_vms() -> gss_network:vms().
|
%vms() -> gss_network:vms().
|
||||||
_hello() -> gss_network:hello().
|
%hello() -> gss_network:hello().
|
||||||
_echo() -> gss_network:echo().
|
%echo() -> gss_network:echo().
|
||||||
|
|
||||||
%%-----------------------------------------------------
|
%%-----------------------------------------------------
|
||||||
%% @doc Stops the server.
|
%% @doc Stops the server.
|
||||||
|
|
Reference in a new issue