py-libp2p/transport/upgrader.py

24 lines
532 B
Python
Raw Normal View History

2018-11-11 22:56:44 +08:00
class TransportUpgrader(object):
def __init__(self, secOpt, muxerOpt):
self.sec = secOpt
self.muxer = muxerOpt
2018-11-11 22:56:44 +08:00
def upgrade_listener(self, transport, listeners):
"""
upgrade multiaddr listeners to libp2p-transport listeners
2018-11-11 22:56:44 +08:00
"""
pass
def upgrade_security(self):
pass
2018-11-11 22:56:44 +08:00
def upgrade_connection(self, conn):
"""
upgrade raw connection to muxed connection
"""
# For PoC, no security
# Default to mplex
pass