diff --git a/README.md b/README.md index 5fa668a..472732a 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,16 @@ No cloud. No account. No Apple ID. No flaky Universal Clipboard. ## How it works ``` -┌─────────────┐ UDP unicast ┌─────────────┐ -│ MacBook │ ──────────────────► │ iMac │ -│ clipx │ │ clipx │ -│ 192.168.0.5 │ ◄────────────────── │ 192.168.0.6 │ -└─────────────┘ UDP unicast └─────────────┘ + ┌──────────────────┐ ┌──────────────────┐ + │ MacBook │ UDP :9877 │ iMac │ + │ │ ──────────────► │ │ + │ clipx │ │ clipx │ + │ 192.168.0.5 │ ◄────────────── │ 192.168.0.6 │ + └──────────────────┘ └──────────────────┘ + copy ⌘C paste ⌘V ``` -Each Mac runs `clipx`. When you copy something, it sends the clipboard content directly to all paired peers via UDP. When it receives content from a peer, it writes it to your local clipboard. That's it. +Each Mac runs `clipx`. When you copy something, it sends the clipboard content directly to all paired peers via UDP unicast. When it receives content from a peer, it writes it to your local clipboard. That's it. - **UDP unicast** — reliable, fast, no firewall issues with multicast - **Explicit pairing** — `clipx pair `, no flaky auto-discovery diff --git a/clipx/node.go b/clipx/node.go index 4087b54..02f4a05 100644 --- a/clipx/node.go +++ b/clipx/node.go @@ -11,9 +11,7 @@ import ( "github.com/google/uuid" ) -const ( - pollInterval = 500 * time.Millisecond -) +const pollInterval = 500 * time.Millisecond // Node is a clipx daemon instance that watches the local clipboard, // broadcasts changes to peers, and applies incoming clipboard content.