diff options
Diffstat (limited to 'src/mds-echo.c')
-rw-r--r-- | src/mds-echo.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c index dbd8a81..6baf8a8 100644 --- a/src/mds-echo.c +++ b/src/mds-echo.c @@ -361,3 +361,19 @@ int full_send(const char* message, size_t length) return -1; } + +/** + * This function is called when a signal that + * signals that the system to dump state information + * and statistics has been received + * + * @param signo The signal that has been received + */ +void received_info(int signo) +{ + (void) signo; + iprintf("next message ID: %" PRIu32, message_id); + iprintf("connected: %s", connected ? "yes" : "no"); + iprintf("echo buffer size: %zu bytes", echo_buffer_size); +} + |