Skip to content

Conversation

@milseman
Copy link
Contributor

@milseman milseman commented Jan 9, 2026

This is a merge-ready port of #30 into the staging branch.

The staging branch is new. My intention is that we can land near-term additions there, especially as they start to interact with each other (e.g. process ids and signals). I'm also merging @lorentey's awesome sample apps in to staging; we want more of this.

The original PR was largely developed by myself and @lorentey long before a lot of Swift's modern features and System has evolved a little bit since then.

I'll be slowly doing a pass over the original PR thread's comments, see what's relevant, etc. I've also not scoured the diff for vestigial code.

@lorentey or @glessard would you be interested in taking a glance over _RawBuffer and seeing if there's a better approach now?

@milseman milseman merged commit 774c7eb into apple:staging Jan 10, 2026
12 of 45 checks passed
@milseman
Copy link
Contributor Author

milseman commented Jan 10, 2026

(merging into staging so I can build on top of it)

@milseman milseman deleted the sockets_2026 branch January 10, 2026 04:26
@stephentyrone
Copy link
Member

@milseman does it make sense to adopt Span in any of these API?

/// An IPv4 address consists of a 32-bit IP address and a 16-bit port number.
@frozen
@available(System 99, *)
public struct IPv4Address: Sendable, Equatable, Hashable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we nest this type inside SocketAddress since it is tied to this and not a Swift native IP address implementation?

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.

3 participants