Connect() problem-broadcast socket -w- tcludp,tcl 8.3, FreeBSD 4.9
From: haunted (macdaddep_at_gmail.com)
Date: 01/23/05
- Next message: PC: "Using @ with http geturl"
- Previous message: Donald Arseneau: "Re: File and glob"
- Next in thread: haunted: "Re: Connect() problem-broadcast socket -w- tcludp,tcl 8.3, FreeBSD 4.9"
- Reply: haunted: "Re: Connect() problem-broadcast socket -w- tcludp,tcl 8.3, FreeBSD 4.9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Jan 2005 20:56:09 -0800
Hi All.
Have an issue with connect() not doing the right thing
in the subject'd env.
In short have a script that daemonizes, opens tcp and udp server
sockets, does some initialization and reacts via fileevent readable.
The fconfigured udp socket is set for broadcast and does receive
udp bcast packets. However sending bcast pkts fails in
connect()(probably)
with variations on: Original error: sock5: socket is not connected.
It would seem to me that the broadcast flag should call code smart
enough to save the original setting, recall connect() for the new
connection, handle business, and then reset.
Is this a known issue or is there a workaround? The client is already
coded in C but since the server interaction involves either heavy pty
work in C :/, or expect :), I chose tcl....
Ideas or pointers are appreciated.
- Next message: PC: "Using @ with http geturl"
- Previous message: Donald Arseneau: "Re: File and glob"
- Next in thread: haunted: "Re: Connect() problem-broadcast socket -w- tcludp,tcl 8.3, FreeBSD 4.9"
- Reply: haunted: "Re: Connect() problem-broadcast socket -w- tcludp,tcl 8.3, FreeBSD 4.9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|