class_docstr: Auto-discovery service class
class_docstr_tok: ["Auto-discovery","service","class"]
docstr: Sends a broadcast
docstr_tok: ["Sends","a","broadcast"]
code: def broadcast(self):
      """Sends a broadcast"""
      if self.isclient:
          self.base.logger.debug(
              "Client sends initial broadcast to (%s, %i)"
              % self.broadcast_addr
          )
          self.bsocket.sendto(ppc.b_("C"), self.broadcast_addr)
      else:
          while True:
              if self.base._exiting:
                  return
              self.base.logger.debug(
                  "Server sends broadcast to (%s, %i)"
                  % self.broadcast_addr
              )
              self.bsocket.sendto(ppc.b_("S"), self.broadcast_addr)
              time.sleep(BROADCAST_INTERVAL)
  
file_path: ppft/ppft/auto.py
imports: import socket
  import sys
  import time
  import threading
  from .None import common
label_desc: Use image node_id 3 for calling the Discover obj's underlying member method code with example usage: obj.broadcast() without return types