Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.59 KB | None | 0 0
  1. % proc tst {args} {puts "started $args"}
  2.  
  3. % socket -server tst -myaddr 0.0.0.0 80
  4. sock8456cd8
  5.  
  6. % update; # after "telnet localhost 80"
  7. started sock84d04c8 127.0.0.1 36265
  8.  
  9. % chan configure sock8456cd8; #query the socket settings
  10. -blocking 1 -buffering full -buffersize 4096 -encoding utf-8 -eofchar {} -translation auto -sockname {0.0.0.0 0.0.0.0 80}
  11.  
  12. % chan configure sock8456cd8 -blocking 1 -buffering full -buffersize 4096 -encoding utf-8 -eofchar {} -translation auto; #configure the socket with exact same settings as it was configured
  13.  
  14. % update; # after "telnet localhost 80"
  15. % #no output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement