A socket should be closed when you receive a &quot;\n&quot;, followed by a &quot;.&quot;, followed by a &quot;\n&quot;.  These will not necessarily all be returned by one recv() call, so you will have to find some way to keep track of, at the minimum, the last 2 characters that were received on a given socket in addition to the character(s) returned by another recv() call.<br>


<br>--Joe<br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 6:20 PM, Tim Miller <span dir="ltr">&lt;<a href="mailto:mille449@msu.edu" target="_blank">mille449@msu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


For the non-blocking server, how do I tell when a socket should be closed?<br>
<br>
<br>
<br>
--Tim<br>
<br>
On Fri, Sep 25, 2009 at 6:19 PM, Tim Miller &lt;<a href="mailto:mille449@msu.edu" target="_blank">mille449@msu.edu</a>&gt; wrote:<br>
&gt; working now.<br>
&gt;<br>
&gt; On Fri, Sep 25, 2009 at 5:37 PM, C. Titus Brown &lt;<a href="mailto:ctb@msu.edu" target="_blank">ctb@msu.edu</a>&gt; wrote:<br>
&gt;&gt; Fudge.  Out of town.  I will diagnose and fix...<br>
&gt;&gt;<br>
&gt;&gt; ---<br>
&gt;&gt; C. Titus Brown, <a href="mailto:ctb@msu.edu" target="_blank">ctb@msu.edu</a><br>
&gt;&gt;<br>
&gt;&gt; On Sep 25, 2009, at 4:31 PM, Tim Miller &lt;<a href="mailto:mille449@msu.edu" target="_blank">mille449@msu.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I can&#39;t reach the svn server.  It was working ~15 min ago but it is<br>
&gt;&gt;&gt; not now.  There any problems with it?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Had two questions originally, but figured out the other one while<br>
&gt;&gt;&gt; typing it up.  silly how that works ;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Tim Miller<br>
&gt;&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
cse491-fall-2009 mailing list<br>
<a href="mailto:cse491-fall-2009@lists.idyll.org" target="_blank">cse491-fall-2009@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/cse491-fall-2009" target="_blank">http://lists.idyll.org/listinfo/cse491-fall-2009</a><br>
</blockquote></div><br>