refactoring stream IDs

This commit is contained in:
Robert Zajac
2018-11-29 13:42:05 -05:00
parent 49bc5d2f65
commit 803999310a
7 changed files with 72 additions and 27 deletions

View File

@ -69,7 +69,7 @@ class TCP(ITransport):
reader, writer = await asyncio.open_connection(host, port)
return RawConnection(host, port, reader, writer)
return RawConnection(host, port, reader, writer, True)
def create_listener(self, handler_function, options=None):
"""

View File

@ -17,11 +17,11 @@ class TransportUpgrader():
def upgrade_security(self):
pass
def upgrade_connection(self, conn, initiator):
def upgrade_connection(self, conn):
"""
upgrade raw connection to muxed connection
"""
# For PoC, no security, default to mplex
# TODO do exchange to determine multiplexer
return Mplex(conn, initiator)
return Mplex(conn)