[Insert name here] Reference Manual | ||||
---|---|---|---|---|
#define GAN_SOCKET_ERROR GQuark gan_socket_error_quark (); enum GanSocketError; GanSocketError gan_socket_error_from_errno (gint en); GanUnixTransportPrivate; GanUnixTransport; GanUnixTransport* gan_unix_transport_new (); gboolean gan_unix_transport_connect (GanUnixTransport *trans, GanUnixAddress *addr, GError **error); gboolean gan_unix_transport_listen (GanUnixTransport *trans, const gchar *filename, GError **error); gboolean gan_unix_transport_send_packet (GanUnixTransport *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; GanUnixTransportPrivate *priv; } GanUnixTransport;
gboolean gan_unix_transport_connect (GanUnixTransport *trans, GanUnixAddress *addr, GError **error);
trans : |
|
addr : |
|
error : |
|
Returns : |
gboolean gan_unix_transport_listen (GanUnixTransport *trans, const gchar *filename, GError **error);
trans : |
|
filename : |
|
error : |
|
Returns : |
gboolean gan_unix_transport_send_packet (GanUnixTransport *trans, GanUnixAddress *dest, GObject *payload, GError **error);
trans : |
|
dest : |
|
payload : |
|
error : |
|
Returns : |