(sock, msg)
Send message

    sock is the socket which sends the message

    msg hast to be a bytestring
Send message
Send message
def sendmsg(sock, msg):
    """Send message

    sock is the socket which sends the message

    msg hast to be a bytestring

    """

    ip, port = sock.getpeername()
    try:
        logging.info('Send a message to '+ip+':'+str(port))
        # \xDE\xAD\xE1\x1D = DEAD END
        sock.sendall(msg + b'\xDE\xAD\xE1\x1D')
    except:
        raise
def sendmsg ( sock , msg ) : ip , port = sock . getpeername ( ) try : logging . info ( 'Send a message to ' + ip + ':' + str ( port ) ) # \xDE\xAD\xE1\x1D = DEAD END sock . sendall ( msg + b'\xDE\xAD\xE1\x1D' ) except : raise