Priority: HIGH
Missing Headers
sys/socket.h - Socket creation, bind, listen, accept, connect, send, recv
sys/select.h - select(), fd_set, FD_* macros
netinet/in.h - sockaddr_in, INADDR_*, htons/ntohs
arpa/inet.h - inet_pton, inet_ntop, inet_addr
netdb.h - getaddrinfo, gethostbyname, getservbyname
Impact
Blocks any network programming - servers, clients, HTTP, DNS resolution. Critical gap for WASI compatibility since WASI has socket support.
Considerations
- WASM/browser won't have these but WASI needs them
- Windows requires different approach (Winsock2)
- Can provide compile-time fencing with
JACL_HAS_SOCKETS
- Consider lightweight stubs for WASM that return ENOSYS
References
Priority: HIGH
Missing Headers
sys/socket.h- Socket creation, bind, listen, accept, connect, send, recvsys/select.h- select(), fd_set, FD_* macrosnetinet/in.h- sockaddr_in, INADDR_*, htons/ntohsarpa/inet.h- inet_pton, inet_ntop, inet_addrnetdb.h- getaddrinfo, gethostbyname, getservbynameImpact
Blocks any network programming - servers, clients, HTTP, DNS resolution. Critical gap for WASI compatibility since WASI has socket support.
Considerations
JACL_HAS_SOCKETSReferences