I'm programming a server in Windows. I wanted to accept multiple connections on the server so I figured I could use CygWin's fork()
. So I added the call to fork()
, but ran into errors.
I realize these errors are caused by the fact that I want to call the Windows Socket API (WSA) socketing functions (e.g. socket
, bind
, accept
) but when I compile with CygWin it's calling its own socketing functions.
My question: How can I use CygWin's fork
but still use the WSA's socket
, accept
, and bind
?