routine that can return an error value, be sure to check the return value and react appropriately to errors. Some routines don't return an error value directly, instead returning a flag to indicate that something has gone wrong. To find out exactly what went wrong, call <CODE>
ThreadGetError()</CODE>
. </P>
<P>
Those Socket library routines that return error values do not set the thread error value. Calling <CODE>
ThreadGetError()</CODE>
 after calling such a routine would not detect any error encountered b