This commit is contained in:
zixuanzh
2018-11-12 13:02:49 -05:00
parent b4272918d9
commit c5c9d3e5c9
17 changed files with 66 additions and 84 deletions

View File

@ -1,5 +1,6 @@
from abc import ABC, abstractmethod
class IListener(ABC):
@abstractmethod

View File

@ -1,5 +1,6 @@
from abc import ABC, abstractmethod
class ITransport(ABC):
@abstractmethod

View File

@ -1,6 +1,7 @@
from muxer.mplex.muxed_connection import MuxedConn
class TransportUpgrader(object):
class TransportUpgrader():
def __init__(self, secOpt, muxerOpt):
self.sec = secOpt
@ -12,7 +13,7 @@ class TransportUpgrader(object):
"""
pass
def upgrade_security(self):
pass
@ -20,8 +21,7 @@ class TransportUpgrader(object):
"""
upgrade raw connection to muxed connection
"""
# For PoC, no security
# Default to mplex
# For PoC, no security, default to mplex
# TODO do exchange to determine multiplexer
return MuxedConn(conn, initiator)