X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Futils%2Funixsock.h;h=0df0b71a3da6526dec090b489e6cbc9189eaba4a;hp=e51e4ac7f1437583bd28b6decb7264e012bbf375;hb=c56d3fd14df5efba97fa47b08d5ea7fe602f7c9a;hpb=d170cd34bb8b4f135ec41c622e6a09ff83ff1011 diff --git a/src/include/utils/unixsock.h b/src/include/utils/unixsock.h index e51e4ac..0df0b71 100644 --- a/src/include/utils/unixsock.h +++ b/src/include/utils/unixsock.h @@ -28,6 +28,8 @@ #ifndef SC_UTILS_UNIXSOCK_H #define SC_UTILS_UNIXSOCK_H 1 +#include + #include #ifdef __cplusplus @@ -49,6 +51,17 @@ sc_unixsock_client_send(sc_unixsock_client_t *client, const char *msg); 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);