def receive_message(self, socket, n):
while not self.frame_message():<EOL><INDENT>received = self.receive(socket, n)<EOL>if received <= <NUM_LIT:0>:<EOL><INDENT>return received<EOL><DEDENT><DEDENT>return <NUM_LIT:1><EOL>
:param socket:
:param n:
:return: