From a1fe91028f9215be30048f9176b16033a83bcad6 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 12 Jul 2020 21:30:22 +0200 Subject: sshnc: Add note to sshnc_maybe_recv() to re-call on OK --- ssh/sshnc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh/sshnc.h b/ssh/sshnc.h index 77edc8d..cb3f644 100644 --- a/ssh/sshnc.h +++ b/ssh/sshnc.h @@ -98,6 +98,8 @@ enum sshnc_retval sshnc_send( // because poll(2) reported as such). // This function also handles general ssh protocol messages, and must thus // ALWAYS be called if there is readable data on the socket. +// NOTE: when calling this function, you must call it as long as it gives +// SSHNC_OK, because there might be more data than your buffer's size. enum sshnc_retval sshnc_maybe_recv( struct sshnc_client *client, size_t capacity, -- cgit v1.2.3-70-g09d2