Method

IbisClientdisconnect

since: 0.1

Declaration [src]

void
ibis_client_disconnect (
  IbisClient* client,
  GError* error,
  const char* reason
)

Description [src]

Disconnects client.

This will send IBIS_MSG_QUIT with message and then call ibis_client_stop().

If error is not NULL, it will be assigned to IbisClient:error.

Available since: 0.1

Parameters

error

Type: GError

A GError.

The argument can be NULL.
The instance takes ownership of the data, and is responsible for freeing it.
reason

Type: const char*

An optional disconnect reason.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.