How, in Python 3, can I have a client open a socket to a server, send 1 line of JSON-encoded data, read 1 line JSON-encoded data back, and continue?
How, in Python 3, can I have a client open a socket to a server, send 1 line of JSON-encoded data, read 1 line JSON-encoded data back, and continue? Question: I have the following code for a server listening on a port: def handle_oracle_query(self, sock, address): sockIn = sock.makefile(‘rb’) sockOut = sock.makefile(‘wb’) line = sockIn.readline() …