[erlang-questions] Jinterface to RSA problem

Vlad Dumitrescu <>
Sun Oct 1 16:14:04 CEST 2006


Hi and welcome,

You have already found the answer yourself :-)

getKey(Length) ->
       {echo, } ! {self(), Length},
       receive
              Msg ->
                   Msg
       end.

If you call (from the shell or not) jinterfaceclient:getKey(1024), you
should get the value back.

c:flush() *removes* any messages from the shell message queue, so if
you call it, there's nothing to be received anymore.

best regards,
Vlad



More information about the erlang-questions mailing list