repo.or.cz
/
jimtcl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
It was possible to create a bad ref
[jimtcl.git]
/
examples
/
tcp.client
blob
ed8582b826cb60b04236c4b893332a4578a2177f
1
# Example of sending via a connected tcp socket
2
3
set s [socket stream 127.0.0.1:20000]
4
5
foreach i [range 1 20] {
6
$s puts "1 << $i"
7
8
puts [$s gets]
9
}