Are there any problems I should be aware of?
--
Kindly CC replies to bri...@evoserve.com
Brian Baquiran
http://www.evoserve.com/~brianb/
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
Nah:
fconfigure $sock -translation binary -buffering full -buffsize 2048
That will eliminate any translation Tcl will try to do, and give you a
2 K buffer/packetsize to tailor as you need. Set -buffering to "none"
if you simply want to flush on send and recieve.
Share and Enjoy!
Sean Woods
yo...@drexel.edu
> > can expect values of 0x00 coming in. How do I fconfigure my filehandle
> > so that Tcl doesn't screw up my data?
> > Are there any problems I should be aware of?
> Nah:
> fconfigure $sock -translation binary -buffering full -buffsize 2048
> That will eliminate any translation Tcl will try to do, and give you
> a 2 K buffer/packetsize to tailor as you need. Set -buffering to
> "none" if you simply want to flush on send and recieve.
If working under Tcl 8.1 'fconfigure -encoding binary' is required
too, to avoid internal recoding into UTF-8.
--
Sincerely,
Andreas Kupries <a.ku...@westend.com>
<http://www.westend.com/~kupries/>
-------------------------------------------------------------------------------