22 #ifndef XAPIAN_INCLUDED_SOCKET_UTILS_H 23 #define XAPIAN_INCLUDED_SOCKET_UTILS_H 32 extern HANDLE fd_to_handle(
int fd);
51 #endif // XAPIAN_INCLUDED_SOCKET_UTILS_H
void set_socket_timeouts(int fd, double timeout)
Attempt to set socket-level timeouts.
unsigned timeout
A timeout value in milliseconds.
include <winsock2.h> but working around problems.
void close_fd_or_socket(int fd)
<unistd.h>, but with compat.