Wrap two files into a fake socket.
This function wraps an input and an output file (which may be the same) into a Socket object.
Definition at line 181 of file network.py.