aboutsummaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-12 21:30:22 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-12 21:37:29 +0200
commita1fe91028f9215be30048f9176b16033a83bcad6 (patch)
tree36f2562e1ba0ca4830c4e26e01b7d0223950aa76 /ssh
parentc5bf241c6039927e150f8451164647517168ee1a (diff)
sshnc: Add note to sshnc_maybe_recv() to re-call on OK
Diffstat (limited to 'ssh')
-rw-r--r--ssh/sshnc.h2
1 files changed, 2 insertions, 0 deletions
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,