Skip to content

Add explicit socket descriptors and syscall-shaped operations. - #30

Merged
samuel-williams-shopify merged 5 commits into
mainfrom
feat/socket-descriptors
Oct 17, 2026
Merged

samuel-williams-shopify merged 5 commits into
mainfrom
feat/socket-descriptors

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Replace the combined TCP listen/connect helpers and separate listener resource with one associated socket descriptor and explicit socket setup operations.

Socket::socket_open creates IPv4/IPv6 stream or datagram sockets. Callers bind, listen with an explicit backlog, or connect separately, and socket_accept returns the same associated resource type. The native readiness, io_uring, and Tokio backends support stream sockets and connected UDP; the in-memory interface probe models stream sockets. Unix sends suppress SIGPIPE consistently across readiness and completion backends. Rename the public file resource from FileHandle to FileDescriptor, and use a non-Clone SocketDescriptor in native and Tokio backends. Standard TCP registration remains available through SocketRegistration.

@samuel-williams-shopify
samuel-williams-shopify force-pushed the feat/socket-descriptors branch 8 times, most recently from e774dcd to 2bcf5e5 Compare October 17, 2026 11:21
@samuel-williams-shopify
samuel-williams-shopify merged commit 7647caf into main Oct 17, 2026
18 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the feat/socket-descriptors branch October 17, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant