thrift_tools/sniffer.py
def pop_data(self, nbytes):
        """ similar to pop, but returns payload + last timestamp """
        last_timestamp = 0
        data = []
        for packet in self.pop(nbytes):
            last_timestamp = packet.timestamp
            data.append(packet.data.data)

        return ''.join(data), last_timestamp
def pop_data(self, nbytes):
        """ similar to pop, but returns payload + last timestamp """
        last_timestamp = 0
        data = []
        for packet in self.pop(nbytes):
            last_timestamp = packet.timestamp
            data.append(packet.data.data)

        return ''.join(data), last_timestamp
def pop_data ( self , nbytes ) : last_timestamp = 0 data = [ ] for packet in self . pop ( nbytes ) : last_timestamp = packet . timestamp data . append ( packet . data . data ) return '' . join ( data ) , last_timestamp
similar to pop, but returns payload + last timestamp
similar to pop but returns payload + last timestamp