Code

Merged branch 'master' of git://git.tokkee.org/sysdb.
[sysdb.git] / src / include / client / sock.h
index 4fd54baa1c5fa7ac99c3c0f46bbf2e2d8f8f2cd6..aeed8a253b58f310c4e3e55df13e38f4bfa0232b 100644 (file)
@@ -83,6 +83,14 @@ sdb_client_connect(sdb_client_t *client, const char *username);
 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.
@@ -96,7 +104,7 @@ sdb_client_close(sdb_client_t *client);
  * connection.
  *
  * Returns:
- *  - 0 on success
+ *  - the number of bytes send
  *  - a negative value else.
  */
 ssize_t