<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>