mirror of https://github.com/libp2p/py-libp2p.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
540 B
24 lines
540 B
class TransportUpgrader(object):
|
|
|
|
def __init__(self, secOpt, muxerOpt):
|
|
self.sec = secOpt
|
|
self.muxer = muxerOpt
|
|
|
|
def upgrade_listener(self, transport, listeners):
|
|
"""
|
|
upgrade multiaddr listeners to libp2p-transport listeners
|
|
|
|
"""
|
|
pass
|
|
|
|
def upgrade_security(self):
|
|
pass
|
|
|
|
def upgrade_connection(self, conn):
|
|
"""
|
|
upgrade raw connection to muxed connection
|
|
"""
|
|
# For PoC, no security
|
|
# Default to mplex
|
|
pass
|
|
|