[erlang-questions] Fwd: gen_server and socket

Ahmed Omar <>
Thu May 26 17:38:57 CEST 2011


"This function is called by a gen_server when a timeout occurs or when it
receives any other message than a synchronous or asynchronous request (or a
system message)."
http://www.erlang.org/doc/man/gen_server.html#Module:handle_info-2

" A socket in passive mode will return {ok, HttpPacket} from gen_tcp:recv while
an active socket will send messages like {http, Socket, HttpPacket}."
http://www.erlang.org/doc/man/inet.html#setopts-2

On Thu, May 26, 2011 at 4:56 PM, Andy W. Song <> wrote:

> Hi list,
>
> Please take a look at this module<https://github.com/MiCHiLU/erlang_websocket/blob/master/src/websocket_client.erl> which
> implements a WebSocket client. I'm wondering who will call  those
> handle_info() functions. I looked around and can't find a clue.
>
> Thanks
> Andy
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>


-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110526/b5c17991/attachment.html>


More information about the erlang-questions mailing list