mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Rewrite Windows connect()
Our old code wasn't working with projects like Qt that call connect() in O_NONBLOCK mode multiple times. This change overhauls connect() to use a simpler WSAConnect() API and follows the same pattern as cosmo accept(). This change also reduces the binary footprint of read(), which no longer needs to depend on our enormous clock_gettime() function.
This commit is contained in:
parent
5469202ea8
commit
e142124730
25 changed files with 556 additions and 277 deletions
|
@ -6,7 +6,6 @@
|
|||
#include "libc/sock/struct/sockaddr.h"
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
void sys_connect_nt_cleanup(struct Fd *, bool);
|
||||
int sys_accept_nt(struct Fd *, struct sockaddr_storage *, int);
|
||||
int sys_bind_nt(struct Fd *, const void *, uint32_t);
|
||||
int sys_closesocket_nt(struct Fd *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue