X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fconnection.h;h=906f906acbea436c5518dd84e798145a84b4d5ac;hp=20cc6c2b4b321d34a436be54c2459fa46d9df94e;hb=d81bfcccccea93ac261b75814e530a5fc50cfc58;hpb=330d8bc42e2577a01288f8a7bd606f2efafa9aa6 diff --git a/src/include/frontend/connection.h b/src/include/frontend/connection.h index 20cc6c2..906f906 100644 --- a/src/include/frontend/connection.h +++ b/src/include/frontend/connection.h @@ -39,6 +39,10 @@ extern "C" { #endif +/* + * sdb_conn_t represents an open connection from a client. It inherits from + * sdb_object_t and may safely be cast to a generic object. + */ typedef struct sdb_conn sdb_conn_t; /* @@ -81,8 +85,8 @@ sdb_connection_accept(int fd); /* * sdb_connection_close: - * Close a open connection and deallocate any memory. The connection object is - * no longer valid after calling this function. + * Close an open connection. Any subsequent reads from the connection will + * fail. Use sdb_object_deref to free the memory used by the object. */ void sdb_connection_close(sdb_conn_t *conn);