<div>To answer my own question, yes. stdin can be used as a valid stream and seems to ahave all the same properties.</div>
<div>&nbsp;</div>
<div>I tested using an offline version of my code echoing back what was written.<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Richard Schmidt</b> &lt;<a href="mailto:huntingtonsurfca@gmail.com">
huntingtonsurfca@gmail.com</a>&gt;<br>Date: Sep 17, 2007 4:55 PM<br>Subject: Is stdin a stream?<br>To: <a href="mailto:ee122@icsi.berkeley.edu">ee122@icsi.berkeley.edu</a><br><br>&nbsp;</span></div>
<div>I&#39;m putting the input into a buffer using fgets (which will automatically tie everything up for me nicely), but if EOF is returned first or an error is returned, the retrn value is a null pointer.</div>
<div>&nbsp;</div>
<div>feof() takes a stream in and looks for an EOF flag, but I don&#39;t know if we can treat stdin as an argument to that function.</div>
<div>&nbsp;</div>
<div>also, what should the client do if a user types in a partial message and then hits the EOF key? should we assume the user wants to break the operation/connection or should we send out the data before the EOF key?</div>

<div>&nbsp;</div>
<div>finally, if an error does occur, should handling things gracefully mean trying to re-establish a connection, asking the user if they want to try and re-establish, returning 1 (error) or just returning 0 (success)?</div>

<div>&nbsp;</div>
<div>Rick</div>