Hi, (as per the docs...) Both NetLibSend and NetLibReceive return the number of bytes sent or received. But if the return value is zero, it indicates that the socket has been closed by remote. For all other errors, it returns -1 with error value set in the 'errP' argument. Why does socket-close return error in this wierd way? There is also an error code reservered for this (but never used?) - 'netErrClosedByRemote'. My question:- (1) If the socket has been closed by remote, would NetLibSend() return 'zero' or '-1 with *errP set to netErrClosedByRemote' ? (2) If NetLibSend() was unable to send any data, but the socket is still open, would it return '0' (as number of bytes sent) or -1 with netErrTimeout ?? Any help is appreciated. === Ion Popescu [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
