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;
186 return static_cast<os_socket_type>(x);
194 return static_cast<SOCKET_TYPE>(x);
219 #endif // LOG4CPLUS_INTERNAL_SOCKET_H_ socket_holder operator=(socket_holder &&)=delete
static int get_last_socket_error()
void operator()(ADDRINFOA *ptr) const
static void set_last_socket_error(int err)
socket_holder(os_socket_type s)
static os_socket_type to_os_socket(SOCKET_TYPE const &x)
void operator()(SOCKET s)
os_socket_type const INVALID_OS_SOCKET_VALUE
static SOCKET_TYPE to_log4cplus_socket(os_socket_type const &x)
void reset(os_socket_type s=INVALID_OS_SOCKET_VALUE)
std::ptrdiff_t SOCKET_TYPE