XMMS2
socket_common.c
Go to the documentation of this file.
1 #include "xmmsc/xmmsc_sockets.h"
2 #include "xmmsc/xmmsc_stdbool.h"
3 
4 #ifdef HAVE_WSPIAPI
5 #include <wspiapi.h>
6 #endif
7 
8 bool
10 {
11  if (xmms_socket_errno () == XMMS_EAGAIN ||
13  return true;
14  }
15  return false;
16 }
17 
18 int
19 xmms_getaddrinfo (const char *node, const char *service,
20  const struct addrinfo *hints, struct addrinfo **res)
21 {
22  return getaddrinfo (node, service, hints, res);
23 }
24 
25 void
26 xmms_freeaddrinfo (struct addrinfo *res)
27 {
28  freeaddrinfo (res);
29 }
int xmms_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
Definition: socket_common.c:19
#define XMMS_EAGAIN
Definition: xmmsc_sockets.h:24
#define XMMS_EINTR
Definition: xmmsc_sockets.h:18
void xmms_freeaddrinfo(struct addrinfo *res)
Definition: socket_common.c:26
bool xmms_socket_error_recoverable()
Definition: socket_common.c:9
int xmms_socket_errno(void)
Definition: socket_unix.c:51