Basic flow implementation

It'll work better if you do self.received_packets.pop() so that you also clear the buffer each time.