Determine whether a file descriptor refers to a socket
#include <sys/stat.h> int isfdtype( int filedes, int fdtype );
socket3r.lib, socket3s.lib
The isfdtype() function determines whether the file descriptor filedes has the properties identified by fdtype.
Valid values for fdtype include:
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
isatty(), stat() in the C Library Reference