<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sendline(sock, msg, confidential=False):
 """Send a binary message, followed by EOL."""

    log.debug('<- %r', ('<snip>' if confidential else msg))
    sock.sendall(msg + b'\n')