python-udp icon indicating copy to clipboard operation
python-udp copied to clipboard

purpose of the example: unicast or broadcast ?

Open wfjm opened this issue 2 years ago • 0 comments

Nice example, but when it comes to broadcast, it leaves many questions:

  • the original gist used broadcast and had a matching title. This example uses unicast. Is that by intention ?
  • if unicast is intended here:
    • the forwarding remark in the gist is misleading.
    • why is socket.SO_BROADCAST still enabled at all ? Examples should be concise.
  • if broadcast were the (lost) purpose:
    • why is socket.SO_BROADCAST on both sender and receiver side ?
    • a remark might be added on firewalls. If a firewall is active, the port must be opened. Common trap.

wfjm avatar Feb 26 '23 08:02 wfjm