def send_ping(self): """ Send a PING :return: None """ if self.last_pong == 0: self.last_pong = time.time() ping = kismet_pb2.Ping() self.write_ext_packet("PING", ping)
def __handle_ping(self, seqno, packet): ping = kismet_pb2.Ping() ping.ParseFromString(packet) self.__send_pong(seqno)
def handle_ping(self, seqno, packet): ping = kismet_pb2.Ping() ping.ParseFromString(packet)
def send_ping(self): if self.last_pong == 0: self.last_pong = time.time() ping = kismet_pb2.Ping() self.write_ext_packet("PING", ping)