Dear developers,
I tried to use the Tcl UDP package to implement a UDP
broadcast function. Unfortantelly the current
implementation does not allow
- to reuse an previous used address for a socket
immediately
- broadcast transmissions are not enabled
I attached a patch for the version 1.0.5 with two
modifications: after creating the UDP socket the option
SO_BROADCAST is set, and before bind the option
SO_REUSEADDR is set. With this modifications it is
possible to send/receive also broadcast packages.
I hope someone will have a look at the patch and add it
- if it is ok - to the CVS repository.
Sincerely,
Torsten Rupp
Patch to add broacast/reuse-address option
Logged In: YES
user_id=202636
As per patch #794072 I think that this is better expressed
as an fconfigure option on the socket. So I shall implement
a -reuseaddr option for the fconfigure command.