if loop is None:
loop = events.get_event_loop()
reader = StreamReader(limit=limit, loop=loop)
- protocol = StreamReaderProtocol(reader)
+ protocol = StreamReaderProtocol(reader, loop=loop)
transport, _ = yield from loop.create_connection(
lambda: protocol, host, port, **kwds)
writer = StreamWriter(transport, protocol, reader, loop)
This exposes write(), writelines(), [can_]write_eof(),
get_extra_info() and close(). It adds drain() which returns an
optional Future on which you can wait for flow control. It also
- adds a transport attribute which references the Transport
+ adds a transport property which references the Transport
directly.
"""