Repository navigation
lanpair 1.2.0: messages up to 1 MiB
Host/Devicesend messages of any size up to 1 MiB: those too big for one UDP
datagram (over about 6 KB) go over a short TCP connection to the peer's port (the same
number as its UDP port), with the same checks. TCP connections are limited to 16 at a
time and 5 seconds each, and oversized frames are refused before they are read.
The TCP listener can be rebound right after a restart (SO_REUSEADDRon POSIX), so a
node keeps its port even after it closed connections itself.- README: a demo GIF, and host / device examples you can run as they are.
e2e/also runsHost/Deviceacross separate environments, with pairing and
message attacks.
Install: pip install "lanpair[all]". Upgrading from 1.1.x needs no code changes.