wvdbusserver: implement NameHasOwner request.
[wvstreams.git] / include / wvsocketpair.h
bloba6e2cd3724b2e7764d66a87a8c767c042a5a6bf2
1 #ifndef __WVSOCKETPAIR_H
2 #define __WVSOCKETPAIR_H
4 #ifndef _WIN32
5 #include <sys/socket.h>
6 #endif
8 /**
9 * Like socketpair(), but works in win32 and doesn't ask you about the
10 * protocol (since that's irrelevant, really). 'type' is like the type
11 * parameter to socketpair(), and should be either SOCK_DGRAM or SOCK_STREAM.
13 * The return value and errno codes are the same as for socketpair().
15 int wvsocketpair(int type, int socks[2]);
17 #endif // __WVSOCKETPAIR_H