On Sat, 15 May 2021 19:00:43 +0000, Patrick Menschel wrote: > Am 15.05.21 um 20:42 schrieb Kurt Van Dijck: > > On Sat, 15 May 2021 18:10:20 +0000, Patrick Menschel wrote: > >> Am 15.05.21 um 16:01 schrieb Patrick Menschel: > >>> Am 15.05.21 um 14:26 schrieb Kurt Van Dijck: > >>>> On Fri, 14 May 2021 12:04:47 +0000, Patrick Menschel wrote: > >>>>> Do I need to open one socket per PGN I'm sending? > >>>>> e.g. > >>>>> > >> Guess I have to amend that impression, everything works fine, > >> except for broadcast which gives me a PermissionError ?! > > > > Will you not forget to set the SO_BROADCAST socket option ( see: man 7 socket ) > > > Thank you both, > > that was the trick. But why does it throw a PermissionError ? > > I would expect a ValueError, e.g. -EINVAL because I as a User did the > wrong input or rather did not set a socket option. > Alternatively -EPROTO. > Looking at it now, I have no good answer. Kurt