call_command_sync


Description:

public bool call_command_sync (string arg_cmd, uint arg_timeout, out string out_response, Cancellable? cancellable = null) throws Error

Synchronously invokes the Command D-Bus method on this.

The calling thread is blocked until a reply is received.

See call_command for the asynchronous version of this method.

Parameters:

this

A GdbusModemProxy.

arg_cmd

Argument to pass with the method invocation.

arg_timeout

Argument to pass with the method invocation.

out_response

Return location for return parameter or null to ignore.

cancellable

A Cancellable or null.

Returns:

true if the call succeeded, false if error is set.