Code

client: Added an EOF flag to the client object.
[sysdb.git] / src / include / client / sock.h
index 39e7622f3b1959fd1fbb1de11301adc25a1b842b..4fd54baa1c5fa7ac99c3c0f46bbf2e2d8f8f2cd6 100644 (file)
@@ -121,6 +121,14 @@ ssize_t
 sdb_client_recv(sdb_client_t *client,
                uint32_t *code, sdb_strbuf_t *buf);
 
+/*
+ * sdb_client_eof:
+ * Returns true if end of file on the client connection was reached, that is,
+ * if the remote side closed the connection.
+ */
+_Bool
+sdb_client_eof(sdb_client_t *client);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif