Version 6 of UDP

Updated 2003-01-30 13:54:07

[...]

Tcl-dp

Scotty

pktsrc

http://www.cs.columbia.edu/~xiaotaow/research/tcludp/ [no broadcast capability?]

Yes, it has the capability to transmit, via puts.

Also http://students.cs.tamu.edu/mmiller/tcl/channel.html .


30Jan2003 Mike Tuxford It was mentioned in c.l.t that there aren't many examples of tcludp usage around so I'll add this simple one that listens on port 1434 which is the MSSQL port and has been in the news a lot lately due to major exploits.

 proc udpEventHandler {} {
   global fd
   puts "event triggered..."
   puts "Data: [gets $fd(udp)]"
   puts "Peer: [udp_conf $fd(udp) -peer]"
   return
 }

 set fd(udp) [udp_open 1434]
 fileevent $fd(udp) readable udpEventHandler
 puts "Listening on udp port: [udp_conf $fd(udp) -myport]"

 vwait __forever__