37 #ifndef LOG4CPLUS_INTERNAL_SOCKET_H_
38 #define LOG4CPLUS_INTERNAL_SOCKET_H_
42 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
46 #if ! defined (INSIDE_LOG4CPLUS)
47 # error "This header must not be be used outside log4cplus' implementation files."
56 #ifdef LOG4CPLUS_HAVE_ERRNO_H
60 #ifdef LOG4CPLUS_HAVE_UNISTD_H
64 #if defined (LOG4CPLUS_HAVE_NETDB_H)
100 DWORD
const eno = WSAGetLastError();
102 WSASetLastError(eno);
113 struct addrinfo_deleter
116 operator () (
struct addrinfo * ptr)
const
130 int const eno = errno;
os_socket_type const INVALID_OS_SOCKET_VALUE
static void set_last_socket_error(int err)
static SOCKET_TYPE to_log4cplus_socket(os_socket_type const &x)
static os_socket_type to_os_socket(SOCKET_TYPE const &x)
static int get_last_socket_error()
std::ptrdiff_t SOCKET_TYPE
void operator()(ADDRINFOA *ptr) const
void operator()(SOCKET s)
socket_holder(socket_holder const &)=delete
void reset(os_socket_type s=INVALID_OS_SOCKET_VALUE)
socket_holder(socket_holder &&)=delete
socket_holder(os_socket_type s)
socket_holder operator=(socket_holder &&)=delete