parameters: (self, id)
docstring: ping
docstring_summary: ping
docstring_tokens: ping
function: def _cmd_ping(self, id):
          """ping"""
          _debug_write('Ping received')
          while True:
              try:
                  message = read_string(self.conn)
                  break
              except socket.timeout:
                  pass
          with self.send_lock:
              _debug_write('Pong response being sent out')
              write_bytes(self.conn, jediSocketServer._PONG)
              write_string(self.conn, id)
              write_string(self.conn, message)
function_tokens: def _cmd_ping ( self , id ) : _debug_write ( 'Ping received' ) while True : try : message = read_string ( self . conn ) break except socket . timeout : pass with self . send_lock : _debug_write ( 'Pong response being sent out' ) write_bytes ( self . conn , jediSocketServer . _PONG ) write_string ( self . conn , id ) write_string ( self . conn , message )