Lines Matching +full:write +full:- +full:host
6 # telnet commands, but can still be used to connect in line-by-line mode.
10 # Usage: telnet host [port]
30 host = sys.argv[1]
32 hostaddr = gethostbyname(host)
34 sys.stderr.write(sys.argv[1] + ': bad host name\n')
48 sys.stderr.write(servname + ': bad tcp service name\n')
54 s.connect((host, port))
56 sys.stderr.write('connect failed: ' + repr(msg) + '\n')
62 # child -- read stdin, write socket
67 # parent -- read socket, write stdout
74 sys.stderr.write( '(Closed by remote host)\n')
102 sys.stdout.write(cleandata)