Basic inetd server : inetd « Network « Python Tutorial






import sys
print "Welcome."
print "Please enter a string:"
sys.stdout.flush()
line = sys.stdin.readline().strip()
print "You entered %d characters." % len(line)








21.7.inetd
21.7.1.Basic inetd server
21.7.2.Socket-based inetd server
21.7.3.UDP Inetd Server
21.7.4.UDP Inetd Server for Wait