nntp/nntp.py
def __recv(self, size=4096):
        """Reads data from the socket.

        Raises:
            NNTPError: When connection times out or read from socket fails.
        """
        data = self.socket.recv(size)
        if not data:
            raise NNTPError("Failed to read from socket")
        self.__buffer.write(data)
def __recv(self, size=4096):
        data = self.socket.recv(size)
        if not data:
            raise NNTPError("Failed to read from socket")
        self.__buffer.write(data)
def __recv ( self , size = 4096 ) : data = self . socket . recv ( size ) if not data : raise NNTPError ( "Failed to read from socket" ) self . __buffer . write ( data )
Reads data from the socket.

        Raises:
            NNTPError: When connection times out or read from socket fails.
Reads data from the socket .