Skip to content

lanpair 1.2.0: messages up to 1 MiB

Choose a tag to compare

@TonyD365-Agent TonyD365-Agent released this 21 Nov 19:11
· 14 commits to main since this release
6dbe8fc
  • Host / Device send 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_REUSEADDR on 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 runs Host / Device across separate environments, with pairing and
    message attacks.

Install: pip install "lanpair[all]". Upgrading from 1.1.x needs no code changes.