Esempio n. 1
0
    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)
Esempio n. 2
0
    def __handle_ping(self, seqno, packet):
        ping = kismet_pb2.Ping()
        ping.ParseFromString(packet)

        self.__send_pong(seqno)
Esempio n. 3
0
 def handle_ping(self, seqno, packet):
     ping = kismet_pb2.Ping()
     ping.ParseFromString(packet)
Esempio n. 4
0
    def send_ping(self):
        if self.last_pong == 0:
            self.last_pong = time.time()

        ping = kismet_pb2.Ping()
        self.write_ext_packet("PING", ping)