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.
 
 
 
 

55 lines
1.8 KiB

  1. .TH libssh2_channel_open_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_channel_open_ex - establish a generic session channel
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. LIBSSH2_CHANNEL *
  7. libssh2_channel_open_ex(LIBSSH2_SESSION *session, const char *channel_type, unsigned int channel_type_len, unsigned int window_size, unsigned int packet_size, const char *message, unsigned int message_len);
  8. LIBSSH2_CHANNEL *
  9. libssh2_channel_open_session(session);
  10. .SH DESCRIPTION
  11. \fIsession\fP - Session instance as returned by
  12. .BR libssh2_session_init_ex(3)
  13. \fIchannel_type\fP - Channel type to open. Typically one of session,
  14. direct-tcpip, or tcpip-forward. The SSH2 protocol allowed for additional
  15. types including local, custom channel types.
  16. \fIchannel_type_len\fP - Length of channel_type
  17. \fIwindow_size\fP - Maximum amount of unacknowledged data remote host is
  18. allowed to send before receiving an SSH_MSG_CHANNEL_WINDOW_ADJUST packet.
  19. \fIpacket_size\fP - Maximum number of bytes remote host is allowed to send
  20. in a single SSH_MSG_CHANNEL_DATA or SSG_MSG_CHANNEL_EXTENDED_DATA packet.
  21. \fImessage\fP - Additional data as required by the selected channel_type.
  22. \fImessage_len\fP - Length of message parameter.
  23. Allocate a new channel for exchanging data with the server. This method is
  24. typically called through its macroized form:
  25. .BR libssh2_channel_open_session(3)
  26. or via
  27. .BR libssh2_channel_direct_tcpip(3)
  28. or
  29. .BR libssh2_channel_forward_listen(3)
  30. .SH RETURN VALUE
  31. Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors.
  32. .SH ERRORS
  33. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  34. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  35. \fILIBSSH2_ERROR_CHANNEL_FAILURE\fP -
  36. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would block.
  37. .SH SEE ALSO
  38. Add related functions