MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / addConnection

Method addConnection

src/network/connectionpool.py:64–73  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

62 return False
63
64 def addConnection(self, connection):
65 if isinstance(connection, UDPSocket):
66 return
67 if connection.isOutbound:
68 self.outboundConnections[connection.destination] = connection
69 else:
70 if connection.destination.host in self.inboundConnections:
71 self.inboundConnections[connection.destination] = connection
72 else:
73 self.inboundConnections[connection.destination.host] = connection
74
75 def removeConnection(self, connection):
76 if isinstance(connection, UDPSocket):

Callers 2

loopMethod · 0.95
handle_acceptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected