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.
dummy_headers
Makefile
README
socketpair.c

README

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.