Thanks, that explains it. <br><br><div class="gmail_quote">On Thu, May 26, 2011 at 11:38 PM, Ahmed Omar <span dir="ltr"><<a href="mailto:spawn.think@gmail.com">spawn.think@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>"<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>
<div><a href="http://www.erlang.org/doc/man/gen_server.html#Module:handle_info-2" target="_blank">http://www.erlang.org/doc/man/gen_server.html#Module:handle_info-2</a></div><div><br></div>"<span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">A socket in passive mode will return</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-family:courier;font-weight:normal">{ok, HttpPacket}</span></span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">from</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-family:courier;font-weight:normal">gen_tcp:recv</span></span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">while an active socket will send messages like</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"> </span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-family:courier;font-weight:normal">{http, Socket, HttpPacket}</span></span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">."</span><div>
<font face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.erlang.org/doc/man/inet.html#setopts-2" target="_blank">http://www.erlang.org/doc/man/inet.html#setopts-2</a><br></font><br><div class="gmail_quote">
<div><div></div><div class="h5">
On Thu, May 26, 2011 at 4:56 PM, Andy W. Song <span dir="ltr"><<a href="http://wsong.cn" target="_blank">wsong.cn</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">
<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></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
</blockquote></div><br>