respond_sync


Description:

[ Version ( since = "1.0" ) ]
public string respond_sync (string response, Cancellable? cancellable = null) throws Error

Synchronously responds to a USSD request that is either initiated by the mobile network, or that is awaiting further input after a previous call to initiate.

The calling thread is blocked until a reply is received. See respond for the asynchronous version of this method.

Parameters:

this

A Modem3gppUssd.

response

The response to network-initiated USSD command, or a response to a request for further input.

cancellable

A Cancellable or null.

Returns:

The network reply to this response to the network-initiated USSD command. The reply may require further responses. The returned value should be freed with g_free.