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.
 
 
 
 

45 lines
1.5 KiB

  1. .TH libssh2_channel_x11_req_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_channel_x11_req_ex - request an X11 forwarding channel
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel, int single_connection, const char *auth_proto, const char *auth_cookie, int screen_number);
  8. int
  9. libssh2_channel_x11_req(LIBSSH2_CHANNEL *channel, int screen_number);
  10. .SH DESCRIPTION
  11. \fIchannel\fP - Previously opened channel instance such as returned by
  12. .BR libssh2_channel_open_ex(3)
  13. \fIsingle_connection\fP - non-zero to only forward a single connection.
  14. \fIauth_proto\fP - X11 authentication protocol to use
  15. \fIauth_cookie\fP - the cookie (hexadecimal encoded).
  16. \fIscreen_number\fP - the XLL screen to forward
  17. Request an X11 forwarding on \fIchannel\fP. To use X11 forwarding,
  18. .BR libssh2_session_callback_set(3)
  19. must first be called to set \fBLIBSSH2_CALLBACK_X11\fP. This callback will be
  20. invoked when the remote host accepts the X11 forwarding.
  21. .SH RETURN VALUE
  22. Return 0 on success or negative on failure. It returns
  23. LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
  24. LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
  25. .SH ERRORS
  26. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  27. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  28. \fILIBSSH2_ERROR_CHANNEL_REQUEST_DENIED\fP -
  29. .SH SEE ALSO
  30. .BR libssh2_channel_open_ex(3)
  31. .BR libssh2_session_callback_set(3)