[tkined] binary data and the udp extensions

Matt Busche (busche@lucent.com)
Wed, 08 Sep 1999 19:20:23 -0600

I am using Scotty 2.1.10 with Tcl/Tk 8.0.4.

I am having trouble transmitting binary data containing null bytes
over a udp channel created using the udp extensions of the Tnm package.
I have no trouble receiving binary data. If for example I receive 4
zero bytes
it comes back encoded like:

\x00\x00\x00\x00

But if I try to transmit the same string:

udp send udp1 \x00\x00\x00\x00

The receiver receives a zero length message.

I've also tried using binary strings:

set msg [binary format cccc 0 0 0 0]
udp send udp1 $msg

This also results in the receiver receiving a zero length message.

So how can I tranmit a udp message that conains null bytes?

Matt Busche
busche@lucent.com
(303)538-6487
Lucent Technologies
11900 N. Pecos St.
Westminster, CO 80234
USA

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.