Signal

PurpleXfer::data-not-sent

since: 3.0.0

Declaration

gboolean
data_not_sent (
  PurpleXfer* self,
  gpointer buffer,
  gulong size,
  gpointer user_data
)

Description [src]

Notify the UI that not all the data read in was written. The UI should re-enqueue this data and return it the next time read is called.

If you connect to this signal, you must connect to PurpleXfer::open-local, PurpleXfer::query-local, PurpleXfer::read-local and PurpleXfer::write-local as well.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since: 3.0.0

Parameters

buffer

Type: gpointer

A pointer to the beginning of the unwritten data.

The argument can be NULL.
The data is owned by the caller of the function.
size

Type: gulong

The amount of unwritten data.

Return value

Type: gboolean

TRUE if the data was re-enqueued successfully, or FALSE otherwise, and the transfer should be cancelled (libpurple will cancel).