def METHOD_NAME(self, buffer, nbytes=None, flags=0):
    if flags != 0:
        raise ValueError("non-zero flags not allowed in calls to recv_into")
    if buffer and (nbytes is None):
        nbytes = len(buffer)
    elif nbytes is None:
        nbytes = 1024
    return self.read(nbytes, buffer)