Utility to pump data between clients and servers for protocol testing.

Perhaps this is a utility worthy of being in protocol.py?

Method __init__ Undocumented
Method flush Pump until there is no more input or output.
Method pump Move data back and forth.
def __init__(self, client, server, clientIO, serverIO, debug):
Undocumented
def flush(self, debug=False):

Pump until there is no more input or output.

Returns whether any data was moved.

def pump(self, debug=False):

Move data back and forth.

Returns whether any data was moved.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.