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

Method announceSelf

src/network/announcethread.py:29–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.stop.wait(10)
28
29 def announceSelf(self):
30 for connection in BMConnectionPool().udpSockets.values():
31 if not connection.announcing:
32 continue
33 for stream in state.streamsInWhichIAmParticipating:
34 addr = (stream, state.Peer('127.0.0.1', BMConfigParser().safeGetInt("bitmessagesettings", "port")), time.time())
35 connection.append_write_buf(BMProto.assembleAddr([addr]))

Callers 1

runMethod · 0.95

Calls 5

BMConnectionPoolClass · 0.90
BMConfigParserClass · 0.90
safeGetIntMethod · 0.80
append_write_bufMethod · 0.80
assembleAddrMethod · 0.80

Tested by

no test coverage detected