Now you can list all vms with __get_vms (just for testing)

This commit is contained in:
Jonatan Pålsson 2011-02-01 16:37:45 +01:00
parent af75d731b4
commit 3d8b413a8f
3 changed files with 10 additions and 4 deletions

View file

@ -34,6 +34,7 @@
%% @end
%%-----------------------------------------------------
start_link(Port) ->
process_flag(trap_exit, true),
gen_server:start_link({local, ?SERVER}, ?MODULE, [Port], []).
start_link() ->
@ -114,9 +115,10 @@ do_JSCall(Socket, Data, State) ->
[];
{crash, Zero} ->
10/Zero;
{vms} ->
send(Socket, "RefID", State);
% Set the new state to []
Other ->
io:format("Got '~p'", [Other]),
send(Socket, "RefID", "__error"),
[]
end,