File: unix.client

package info (click to toggle)
jimtcl 0.81%2Bdfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,416 kB
  • sloc: ansic: 175,569; tcl: 5,456; sh: 4,814; cpp: 1,671; makefile: 269
file content (9 lines) | stat: -rw-r--r-- 149 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
# Example of sending via a connected tcp socket

set s [socket unix unix.tmp]

foreach i [range 1 20] {
	$s puts "expr {1 << $i}"

	puts [$s gets]
}