diff options
Diffstat (limited to 'src/mds-registry/registry.c')
-rw-r--r-- | src/mds-registry/registry.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c index 660fd6c..359bfc3 100644 --- a/src/mds-registry/registry.c +++ b/src/mds-registry/registry.c @@ -38,6 +38,17 @@ /** + * Send a full message even if interrupted + * + * @param message:const char* The message to send + * @param length:size_t The length of the message + * @return :int Zero on success, -1 on error + */ +#define full_send(message, length) \ + ((full_send)(socket_fd, message, length)) + + +/** * Handle the received message containing a ‘Client closed’-header * * @return Zero on success -1 on error or interruption, |