python-network
Python module for easy networking

◆ wrap()

def network.wrap (   i,
  o = None 
)

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.

Parameters
iinput file.
ooutput file.

Definition at line 181 of file network.py.