MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / stop

Method stop

plugins/AnnounceLocal/BroadcastServer.py:79–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 self.log.debug("Stopped listening on port %s" % self.listen_port)
78
79 def stop(self):
80 self.log.debug("Stopping, socket: %s" % self.sock)
81 self.running = False
82 if self.sock:
83 self.sock.close()
84
85 def send(self, addr, message):
86 if type(message) is not list:

Callers 1

cleanupFunction · 0.45

Calls 1

closeMethod · 0.45

Tested by 1

cleanupFunction · 0.36