Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/udp-reuse/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Motivation: While developing a discovery protocol, I required the ability to have multiple clients/servers running on the same machine.
Other operating systems package this as SO_REUSE*.
This patch allows multiple clients to receive UDP packets destined for the same address/port.

When announcing, clients can specify the reuse flag 'announce 5050 reuse'.
If all prior clients specified the reuse flag, then the announce will succeed and the client will receive a copy of all packets.
Once an address/port is announced with reuse, all subsequent clients must also specify reuse.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].