Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- From: dkushner99@xxxxxxxxx
- Date: Thu, 30 Aug 2007 15:17:32 -0700
On Aug 30, 2:57 pm, Alexandre Ferrieux <alexandre.ferri...@xxxxxxxxx>
wrote:
Daniel,
When looking for portability hints, a good source is ... the Tcl
source :-)
Try grepping for FIONBIO in Tcl. There you'll find various workarounds
which are put together depending on autoconf-detected conditions, like
the presence and usability of sys/filio.h, etc.
A cursory look shows at least 3 situations:
- either use fcntl(FIONBIO) from sys/filio.h
- or find it in sys/ioctl.h
- or emulate it with ioctl(F_GETFL/F_SETFL), setting the O_NONBLOCK
bit in between
From there I'd suggest to ask TclUDP's developer a hand, because he
must be more in a position to decide what is the simplest of the three
given the rest of his code and his culture about portability.
If this fails, another option would be to remove entirely the part
needing non-blocking IO, since your use is only of UDP, where recv()
amply covers the kind of "half-blocking" needed to receive individual
packets in the Tcl event loop. Ugly, but easier...
HTH,
-Alex
Thanks again Alex,
Yes, I've already sent an email to the udp_tcl developer. He may get
back to me when he has time, I don't know. I also wanted to let you
know that the ceptcl guy (Stu C.) emailed me back (about the problems
we were looking into) and said he'd get back to me soon. I'd like to
see both packages working. I'll use both packageds for different
things.
I may be able to hack it together and get it to compile but, I'll give
the developer an opportunity to look into it first. Thanks for listing
some alternatives.
- Daniel
.
- References:
- TCL-UDP: Problems compiling a modified version (by the developer) of the package
- From: dkushner99
- Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- From: Alexandre Ferrieux
- TCL-UDP: Problems compiling a modified version (by the developer) of the package
- Prev by Date: Re: Need header file to compile tcludp package
- Next by Date: Re: TCL editor recommendation
- Previous by thread: Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- Next by thread: Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- Index(es):
Relevant Pages
|