A variant of socketpair(2), producing selectable sockets, for use in code that must be portable to win32.
C Makefile
Latest commit bd18664 Mar 30, 2016 @ncm Merge pull request #3 from mstorsjo/dummy-headers
Provide ws2tcpip.h which is used instead of winsock2.h nowadays
Failed to load latest commit information.
Makefile add scaffold to test win32 build on *nix, improve readme, fix typo Apr 1, 2010
README minor fixes git skipped on last commit Apr 1, 2010
socketpair.c s/INVALID_SOCKET/-1/g Feb 12, 2014


Windows XP doesn't provide POSIX socketpair(2).  Typical workarounds
based on pipes can't be used with win32 select(2).  This socketpair is 
named a little differently because it offers an extra argument needed 
for use in Windows code.  The extra argument is ignored on unixy systems.