1libssh2_channel_process_startup(3l)ibssh2 manuallibssh2_channel_process_startup(3)
2
3
4

NAME

6       libssh2_channel_process_startup - request a shell on a channel
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel,
12                                           const char *request,
13                                           unsigned int request_len,
14                                           const char *message,
15                                           unsigned int message_len);
16

DESCRIPTION

18       channel - Active session channel instance.
19
20       request  -  Type  of  process  to  startup. The SSH2 protocol currently
21       defines shell, exec, and subsystem as standard process services.
22
23       request_len - Length of request parameter.
24
25       message - Request specific message data to include.
26
27       message_len - Length of message parameter.
28
29       Initiate a request on a session type channel such as returned  by  lib‐
30       ssh2_channel_open_ex(3)
31

RETURN VALUE

33       Return   0  on  success  or  negative  on  failure.   It  returns  LIB‐
34       SSH2_ERROR_EAGAIN  when  it   would   otherwise   block.   While   LIB‐
35       SSH2_ERROR_EAGAIN  is  a negative number, it isn't really a failure per
36       se.
37

ERRORS

39       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
40
41       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
42
43       LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED -
44

SEE ALSO

46       libssh2_channel_open_ex(3)
47
48
49
50libssh2 0.15                      1 Jun 2007libssh2_channel_process_startup(3)
Impressum