<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def recv_line(self, max_size=None, timeout='default', ending=None):
 """ Recieve until the next newline , default "\\n". The newline string can be changed by changing ``nc.LINE_ENDING``. The newline will be returned as part of the string. Aliases: recvline, readline, read_line, readln, recvln """

        if ending is None:
            ending = self.LINE_ENDING
        return self.recv_until(ending, max_size, timeout)