index e51e4ac7f1437583bd28b6decb7264e012bbf375..0df0b71a3da6526dec090b489e6cbc9189eaba4a 100644 (file)
#ifndef SC_UTILS_UNIXSOCK_H
#define SC_UTILS_UNIXSOCK_H 1
+#include <sys/socket.h>
+
#include <stddef.h>
#ifdef __cplusplus
char *
sc_unixsock_client_recv(sc_unixsock_client_t *client, char *buffer, size_t buflen);
+/*
+ * sc_unixsock_client_shutdown:
+ * Shut down the client's send and/or receive operations. If appropriate, the
+ * client will automatically re-connect on the next send / receive operation
+ * after that.
+ *
+ * See shutdown(3) for details.
+ */
+int
+sc_unixsock_client_shutdown(sc_unixsock_client_t *client, int how);
+
void
sc_unixsock_client_destroy(sc_unixsock_client_t *client);