[erlang-questions] Fwd: gen_server and socket

Andy W. Song wsong.cn@REDACTED
Fri May 27 02:22:15 CEST 2011


Thanks, that explains it.

On Thu, May 26, 2011 at 11:38 PM, Ahmed Omar <spawn.think@REDACTED> wrote:

> "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 <wsong.cn@REDACTED> 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
>> erlang-questions@REDACTED
>> 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/20110527/3eedfdcd/attachment.htm>


More information about the erlang-questions mailing list