# Example of sending via a connected tcp socket set s [socket stream 127.0.0.1:20000] foreach i [range 1 20] { $s puts "1 << $i" puts [$s gets] }