send_message


Description:

public Result send_message (Message message, out uint id)

Send a message using the connection of the this.

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

Parameters:

this

a Watch

message

a Message

id

location for a message ID or null

Returns:

OK on success.




2022 vala-language.org