(self, nodeid)
| 53 | raise KeyError |
| 54 | |
| 55 | def isAlreadyConnected(self, nodeid): |
| 56 | for i in self.inboundConnections.values() + self.outboundConnections.values(): |
| 57 | try: |
| 58 | if nodeid == i.nodeid: |
| 59 | return True |
| 60 | except AttributeError: |
| 61 | pass |
| 62 | return False |
| 63 | |
| 64 | def addConnection(self, connection): |
| 65 | if isinstance(connection, UDPSocket): |