riscv-openocd-wch/jimtcl/examples/tcp.client

10 lines
151 B
Plaintext

# 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]
}