index bce3da91898a670a00eb532e630e2b0663462321..638f8626660807a33776267f8116dbe38c8449c0 100644 (file)
#include "core/object.h"
#include "core/data.h"
-
#include "frontend/proto.h"
-
#include "utils/strbuf.h"
#include <sys/socket.h>
+#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
int
sdb_client_sockfd(sdb_client_t *client);
+/*
+ * sdb_client_shutdown:
+ * Shut down the client's send and/or receive operations.
+ * See shutdown(3) for details.
+ */
+int
+sdb_client_shutdown(sdb_client_t *client, int how);
+
/*
* sdb_client_close:
* Close the client connection.
* Returns true if end of file on the client connection was reached, that is,
* if the remote side closed the connection.
*/
-_Bool
+bool
sdb_client_eof(sdb_client_t *client);
#ifdef __cplusplus