<s> import socket <EOL> import sys <EOL> HOST , PORT = "<STR_LIT:localhost>" , <NUM_LIT> <EOL> data = "<STR_LIT:U+0020>" . join ( sys . argv [ <NUM_LIT:1> : ] ) <EOL> sock = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) <EOL> try : <EOL> sock . connect ( ( HOST , PORT ) ) <EOL> sock . sendall ( data + "<STR_LIT:\n>" ) <EOL> received = sock . recv ( <NUM_LIT> ) <EOL> finally : <EOL> sock . close ( ) <EOL> print ( "<STR_LIT>" . format ( data ) ) <EOL> print ( "<STR_LIT>" . format ( received ) ) </s>
