Menu

#5 Socket option broadcast+reuse address

closed-accepted
nobody
None
5
2004-02-09
2003-10-22
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    Patch to add broacast/reuse-address option

     
  • Pat Thoyts

    Pat Thoyts - 2004-02-09
    • status: open --> closed
     
  • Pat Thoyts

    Pat Thoyts - 2004-02-09
    • status: closed --> closed-accepted
     
  • Pat Thoyts

    Pat Thoyts - 2004-02-09

    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.

     

Log in to post a comment.

Auth0 Logo