(self)
return data
Receives the next packet (or *frame*) from the underlying stream.
        This method will block until the packet has been read completely
        
        :returns: string of data
Receives the next packet (or *frame*) from the underlying stream.
        This method will block until the packet has been read completely
        
        :returns: string of data
Receives the next packet ( or * frame * ) from the underlying stream . This method will block until the packet has been read completely : returns : string of data
def recv(self):
        """Receives the next packet (or *frame*) from the underlying stream.
        This method will block until the packet has been read completely
        
        :returns: string of data
        """
        header = self.stream.read(self.FRAME_HEADER.size)
        length, compressed = self.FRAME_HEADER.unpack(header)
        data = self.stream.read(length + len(self.FLUSHER))[:-len(self.FLUSHER)]
        if compressed:
            data = zlib.decompress(data)
        return data
def recv ( self ) : header = self . stream . read ( self . FRAME_HEADER . size ) length , compressed = self . FRAME_HEADER . unpack ( header ) data = self . stream . read ( length + len ( self . FLUSHER ) ) [ : - len ( self . FLUSHER ) ] if compressed : data = zlib . decompress ( data ) return data