<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 3:56 PM, Simon Yarde <span dir="ltr">&lt;<a href="mailto:simonyarde@me.com" target="_blank">simonyarde@me.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2iz" style="overflow:hidden">I&#39;m new to Haskell and have reached an impasse in understanding the behaviour of sockets.<br>
</div></blockquote></div><br>Your question is actually not related to Haskell at all, but is a general &quot;I don&#39;t understand socket programming&quot; question. You&#39;re being misled by the non-blocking sockets observation - this makes no difference to the behaviour of your program.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I recommend picking up copies of &quot;Unix Network Programming&quot; and &quot;TCP/IP Illustrated&quot;, and reading them.</div></div>