Skip to content

Support apple's AWDL on their platforms - #26

Merged
jfro merged 5 commits into
developfrom
feature/peer-to-peer
Oct 26, 2026
Merged

jfro merged 5 commits into
developfrom
feature/peer-to-peer

Conversation

@jfro

@jfro jfro commented Oct 26, 2026

Copy link
Copy Markdown
Member

No description provided.

jfro and others added 4 commits October 26, 2026 11:41
tv_usec was set to the full timeout in microseconds rather than the
sub-second remainder, so any timeout of a second or more made select
fail with EINVAL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…latforms

Adds with_peer_to_peer() to ServiceBrowserBuilder and DNSServiceBuilder,
which sets kDNSServiceFlagsIncludeP2P | kDNSServiceFlagsIncludeAWDL so
services can be found/advertised without a shared network. Off by
default, only available on Apple targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds Service::resolve_socket_addrs() on Apple platforms, which uses
DNSServiceGetAddrInfo on the interface the service was found on.
getaddrinfo doesn't search peer-to-peer interfaces, and IPv6 link-local
results get scoped to their interface so they're usable directly.
Includes a p2p example for register/browse across devices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:10:22.574735Z 2e57442 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jfro

jfro commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e5744277b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/os/apple/browse.rs
With peer-to-peer browsing, browse can report kDNSServiceInterfaceIndexP2P
for a service. That placeholder was kept on Service and passed to
DNSServiceGetAddrInfo, where it isn't valid, so resolve_socket_addrs could
fail or time out for P2P services. Keep the concrete interface reported by
the resolve callback instead, and fall back to any interface if only the
placeholder is known.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jfro
jfro merged commit d873a27 into develop Oct 26, 2026
6 checks passed
@jfro
jfro deleted the feature/peer-to-peer branch October 26, 2026 16:47
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