Good way to send/receive UDP packets?

wjoe invalid at example.com
Mon Jul 27 09:41:44 UTC 2020


On Thursday, 23 July 2020 at 13:29:47 UTC, Kagamin wrote:
> On Wednesday, 22 July 2020 at 16:14:24 UTC, wjoe wrote:
>> If you send a UDP datagram to a single address, however, it 
>> will still be delivered to every program on that PC which 
>> receives UDP datagrams from that port.
>
> Normally binding two sockets to the same port is not allowed.

But it's possible when bound with the socket option SO_REUSEPORT 
(at least that's the name of the flag on linux since 3.9).


More information about the Digitalmars-d-learn mailing list