1 .\" $Id: libssh2_channel_process_startup.3,v 1.1 2007/06/13 20:54:25 jehousley Exp $
3 .TH libssh2_channel_process_startup 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
5 libssh2_channel_process_startup - request a shell on a channel
10 libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel, const char *request, unsigned int request_len, const char *message, unsigned int message_len);
13 libssh2_channel_shell(LIBSSH2_CHANNEL *channel);
16 libssh2_channel_exec(LIBSSH2_CHANNEL *channel, const char *message);
19 libssh2_channel_subsystem(LIBSSH2_CHANNEL *channel, const char *message);
22 \fIchannel\fP - Active session channel instance.
24 \fIrequest\fP - Type of process to startup. The SSH2 protocol currently
25 defines shell, exec, and subsystem as standard process services.
27 \fIrequest_len\fP - Length of request parameter.
29 \fImessage\fP - Request specific message data to include.
31 \fImessage_len\fP - Length of message parameter.
33 Initiate a request on a session type channel such as returned by
34 .BR libssh2_channel_open_session(3)
37 Return 0 on success or negative on failure. It returns
38 LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
39 LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
42 \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
44 \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
46 \fILIBSSH2_ERROR_CHANNEL_REQUEST_DENIED\fP -
49 .BR libssh2_channel_open_session(3)