(self, poll_interval, buf=None)
return decode_network_packet(buf)
Decodes a given buffer or the next received packet.
Decodes a given buffer or the next received packet.
Decodes a given buffer or the next received packet .
def decode(self, poll_interval, buf=None):
        """Decodes a given buffer or the next received packet.
        """
        if buf is None:
            buf = self.receive(poll_interval)
        if buf is None:
            return None
        return decode_network_packet(buf)
def decode ( self , poll_interval , buf = None ) : if buf is None : buf = self . receive ( poll_interval ) if buf is None : return None return decode_network_packet ( buf )