GSocketConnectable
GSocketConnectable — Interface for potential socket endpoints
|
|
Object Hierarchy
GInterface
╰── GSocketConnectable
Prerequisites
GSocketConnectable requires
GObject.
Includes
#include <gio/gio.h>
Functions
g_socket_connectable_to_string ()
gchar *
g_socket_connectable_to_string (GSocketConnectable *connectable);
Format a GSocketConnectable as a string. This is a human-readable format for
use in debugging output, and is not a stable serialization format. It is not
suitable for use in user interfaces as it exposes too much information for a
user.
If the GSocketConnectable implementation does not support string formatting,
the implementation’s type name will be returned as a fallback.
Returns
the formatted string.
[transfer full]
Since: 2.48
Types and Values
GSocketConnectable
typedef struct _GSocketConnectable GSocketConnectable;
Interface for objects that contain or generate a GSocketAddress.
struct GSocketConnectableIface
struct GSocketConnectableIface {
GTypeInterface g_iface;
/* Virtual Table */
GSocketAddressEnumerator * (* enumerate) (GSocketConnectable *connectable);
GSocketAddressEnumerator * (* proxy_enumerate) (GSocketConnectable *connectable);
gchar * (* to_string) (GSocketConnectable *connectable);
};
Provides an interface for returning a GSocketAddressEnumerator
and GProxyAddressEnumerator