19 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
28 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
32 sock.connect((HOST, PORT))
40 print "Data to send ", data
41 sock.send(data +
"\n")
43 received = sock.recv(1024)
51 sock.send(data +
"\n")
56 if __name__ ==
"__main__":
59 data =
" ".join(sys.argv[1:])
def SendDataNoReturn
test, not used, to delete
Global variables for configuration: paths, TCP ports and generic definitions.