diff options
-rw-r--r-- | ssh/sshnc.h | 2 |
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, |