1libssh2_channel_process_startup(3)  libssh2 libssh2_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
12       libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel,
13                                       const char *request,
14                                       unsigned int request_len,
15                                       const char *message,
16                                       unsigned int message_len);
17

DESCRIPTION

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

RETURN VALUE

34       Return  0  on  success  or negative on failure.  It returns LIBSSH2_ER‐
35       ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
36       a negative number, it is not really a failure per 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