Declaration [src]

purple_gio_socket_client_new (
  PurpleAccount* account,
  GError** error

Description [src]

A helper function to simplify creating a GSocketClient. It’s intended to be used in protocol plugins.


account PurpleAccount

The PurpleAccount to use for this connection.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GSocketClient

A new GSocketClient with the appropriate GProxyResolver, based on the PurpleAccount settings and TLS Certificate handling, or NULL if an error occurred.

 The caller of the function takes ownership of the data, and is responsible for freeing it.