Loading...
Select Version
&pagelevel(3)&pagelevel
#include <sys.socket.h>
Kernighan-Ritchie-C:
int soc_eof(s);
int s;
int soc_error(s);
int s;
int soc_clearerr(s);
int s;
ANSI-C:
int soc_eof(int s);
int soc_error(int s);
int soc_clearerr(int s);
Description and return value
The soc_eof() function returns a value !=
0 if the EOF condition applies to socket s; otherwise, soc_eof() returns the value 0.
The soc_error() function returns a value !=0 if a read or write error has occurred on socket s; otherwise, soc_error() returns the value 0. The error indicator remains set until it is deleted with the soc_clearerr() function.
The soc_clearerr() function deletes the error indicator for socket s.