send_messages


Description:

[ Version ( since = "1.16" ) ]
public Result send_messages (Message[] messages, out uint id)

Sends messages using the connection of the this.

If they cannot be sent immediately, they will be queued for transmission in this. The contents of messages will then be serialized and transmitted when the connection of the this becomes writable. In case the messages are queued, the ID returned in id will be non-zero and used as the ID argument in the message_sent callback once the last message is sent. The callback will only be called once for the last message.

Parameters:

this

a Watch

messages

the messages to send

id

location for a message ID or null

n_messages

the number of messages to send

Returns:

OK on success.




2022 vala-language.org