def message(message_type, payload, payload_length):
    """ Build a message. """
    return packet.build(
        Container(
            type=message_type,
            id=1,
            refer=0,
            sent=Container(
                secs=0,
                usecs=0
            ),
            recv=Container(
                secs=0,
                usecs=0
            ),
            payload_length=payload_length,
            payload=payload
        )
    )
def message ( message_type , payload , payload_length ) : return packet . build ( Container ( type = message_type , id = 1 , refer = 0 , sent = Container ( secs = 0 , usecs = 0 ) , recv = Container ( secs = 0 , usecs = 0 ) , payload_length = payload_length , payload = payload ) )
Build a message.