Commit Graph

2 Commits

Author SHA1 Message Date
David Crawshaw b0e2f4a4e4 libtailscale: make tailscale_listener pollable
Use a socketpair(2) and sendmsg/recvmsg to pass a connection fd
from Go to C. This lets people write non-blocking C by polling on a
tailscale_listener for when they should tailscale_accept.

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2023-03-18 15:04:28 -07:00
David Crawshaw 0dc2f30930 libtailscale: Tailscale C library 2023-03-01 08:21:28 -08:00