<div>"<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; ">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)."</span></div>
<meta charset="utf-8"><div><a href="http://www.erlang.org/doc/man/gen_server.html#Module:handle_info-2">http://www.erlang.org/doc/man/gen_server.html#Module:handle_info-2</a></div><div><br></div>"<meta charset="utf-8"><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; ">A socket in passive mode will return</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><span class="code" style="font-family: courier; font-weight: normal; ">{ok, HttpPacket}</span></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; ">from</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><span class="code" style="font-family: courier; font-weight: normal; ">gen_tcp:recv</span></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; ">while an active socket will send messages like</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "> </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><span class="code" style="font-family: courier; font-weight: normal; ">{http, Socket, HttpPacket}</span></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; ">."</span><div>
<font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.erlang.org/doc/man/inet.html#setopts-2">http://www.erlang.org/doc/man/inet.html#setopts-2</a><br></font><br><div class="gmail_quote">
On Thu, May 26, 2011 at 4:56 PM, Andy W. Song <span dir="ltr"><<a href="http://wsong.cn">wsong.cn</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><span style="border-collapse:collapse;color:rgb(32, 32, 32);font-family:'Droid Sans', arial, sans-serif;font-size:13px">Hi list, <div><br></div><div>Please take a look at this <a href="https://github.com/MiCHiLU/erlang_websocket/blob/master/src/websocket_client.erl" style="color:rgb(103, 117, 58)" target="_blank">module</a> which implements a WebSocket client. I'm wondering who will call those handle_info() functions. I looked around and can't find a clue. </div>
<div><br></div><div>Thanks</div><div>Andy</div></span>
</div><br><br clear="all"><br>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div><div>
<a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div>