#!/usr/bin/env python """ An echo client that allows the user to send multiple lines to the server. Entering a blank line will exit the client. """ import socket import sys s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((sys.argv[1],50000)) s.send(sys.stdin.readline()) s.close()