[Insert name here] Reference Manual | ||||
---|---|---|---|---|
#define GAN_SOCKET_ERROR GQuark gan_socket_error_quark (); enum GanSocketError; GanSocketError gan_socket_error_from_errno (gint en); GanSocketTransportPrivate; GanSocketTransport; GanSocketTransport* gan_socket_transport_new (); gboolean gan_socket_transport_connect (GanSocketTransport *trans, GanUnixAddress *addr, GError **error); gboolean gan_socket_transport_listen (GanSocketTransport *trans, const gchar *filename, GError **error); gboolean gan_socket_transport_send_packet (GanSocketTransport *trans, GanUnixAddress *dest, GObject *payload, GError **error);
typedef enum { GAN_SOCKET_ERROR_NOPERMISSION = 1, GAN_SOCKET_ERROR_NOSUPPORT, GAN_SOCKET_ERROR_NORESOURCES, GAN_SOCKET_ERROR_LOOP, GAN_SOCKET_ERROR_NOENT, GAN_SOCKET_ERROR_NOTDIR, GAN_SOCKET_ERROR_ROFS, GAN_SOCKET_ERROR_ADDRINUSE, GAN_SOCKET_ERROR_CONNREFUSED, GAN_SOCKET_ERROR_NETUNREACH, GAN_SOCKET_ERROR_TIMEDOUT, GAN_SOCKET_ERROR_CONNABORTED, GAN_SOCKET_ERROR_PROTO, GAN_SOCKET_ERROR_FAILED } GanSocketError;
typedef struct { GObject parent; GanSocketTransportPrivate *priv; } GanSocketTransport;
gboolean gan_socket_transport_connect (GanSocketTransport *trans, GanUnixAddress *addr, GError **error);
trans : |
|
addr : |
|
error : |
|
Returns : |
gboolean gan_socket_transport_listen (GanSocketTransport *trans, const gchar *filename, GError **error);
trans : |
|
filename : |
|
error : |
|
Returns : |
gboolean gan_socket_transport_send_packet (GanSocketTransport *trans, GanUnixAddress *dest, GObject *payload, GError **error);
trans : |
|
dest : |
|
payload : |
|
error : |
|
Returns : |