geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
1.2 KiB

  1. .TH libssh2_channel_receive_window_adjust 3 "15 Mar 2009" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_channel_receive_window_adjust - adjust the channel window
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. unsigned long
  7. libssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL * channel,
  8. unsigned long adjustment,
  9. unsigned char force);
  10. .SH DESCRIPTION
  11. This function is deprecated in 1.1. Use
  12. \fIlibssh2_channel_receive_window_adjust2(3)\fP!
  13. Adjust the receive window for a channel by adjustment bytes. If the amount to
  14. be adjusted is less than LIBSSH2_CHANNEL_MINADJUST and force is 0 the
  15. adjustment amount will be queued for a later packet.
  16. .SH RETURN VALUE
  17. Returns the new size of the receive window (as understood by remote end). Note
  18. that the window value sent over the wire is strictly 32bit, but this API is
  19. made to return a 'long' which may not be 32 bit on all platforms.
  20. .SH ERRORS
  21. In 1.0 and earlier, this function returns LIBSSH2_ERROR_EAGAIN for
  22. non-blocking channels where it would otherwise block. However, that is a
  23. negative number and this function only returns an unsigned value and this then
  24. leads to a very strange value being returned.
  25. .SH SEE ALSO
  26. .BR libssh2_channel_window_read_ex(3)