ggs_connection / connection modules do not exist, removing them from send calls

This commit is contained in:
Jonatan Pålsson 2011-02-04 16:35:36 +01:00
parent 386e386ecf
commit cb53cd6908

View file

@ -131,23 +131,23 @@ do_JSCall(Socket, Data, State) ->
Ret = js_runner:call(JSVM, "userCommand",
[list_to_binary(Command),
list_to_binary(Parameter)]),
connection:send(Socket, "RefID", "JS says: ", Ret),
send(Socket, "RefID", "JS says: ", Ret),
[];
% Set the new state to the reference generated, and JSVM associated
{hello} ->
Client = getRef(),
connection:send(Socket, Client, "__ok_hello"),
send(Socket, Client, "__ok_hello"),
{Client, JSVM};
{echo, RefID, _, MSG} ->
connection:send(Socket, RefID, "Your VM is ", getJSVM(RefID, State)),
send(Socket, RefID, "Your VM is ", getJSVM(RefID, State)),
[];
{crash, Zero} ->
10/Zero;
{vms} ->
connection:send(Socket, "RefID", State);
send(Socket, "RefID", State);
% Set the new state to []
Other ->
ggs_connection:send(Socket, "RefID", "__error"),
send(Socket, "RefID", "__error"),
[]
end,
% Return the new state