Wrap sockets, and map getaddrinfo's error space into a registered status range
#16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §4.4 (at
669b2b3)socket,bind,listen,accept,connectsend/recvfamilies,shutdownsetsockopt/getsockoptgetaddrinfo/freeaddrinfo/gai_strerrorinet_ntop/inet_ptongetaddrinfois the interesting one: it has its own error space, neither errnonor akerror, which needs mapping into a registered status range. That is a
design decision with a cost either way -- a faithful mapping means a new status
band to own, and a lossy one throws away the distinction between "no such host"
and "temporary failure".
Related: a useful socket API is hard to separate from the threading one, which is
blocked on the error pool.
Files:
src/,include/akstdlib.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)