2 ms·
There seems to be a standard socket API in the Cosmopolitan clib though: https://github.com/jart/cosmopolitan/tree/master/libc/sock https://github.com/jart/cos
by flohofwoe 3y ago
There seems to be a standard socket API in the Cosmopolitan clib though:
https://github.com/jart/cosmopolitan/tree/master/libc/sock https://github.com/jart/cosmopolitan/tree/master/libc/sock
..and that also seems to have WinSock support:
https://github.com/jart/cosmopolitan/blob/master/libc/sock/connect-nt.c https://github.com/jart/cosmopolitan/blob/master/libc/sock/c...
(also Windows is probably the only non-POSIX OS that matters - and APE is obviously only portable to systems it specifically supports, it can't support systems it doesn't even know about, no matter if it is a "POSIX system" or not).
- pjmlp 3y agoYeah, but that is going beyond ISO C, and diving int POSIX C LIB, which is the point I was making already.