Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_channel_handle_extended_data2(3) [centos man page]

libssh2_channel_handle_extended_data2(3)			  libssh2 manual			  libssh2_channel_handle_extended_data2(3)

NAME
libssh2_channel_handle_extended_data2 - set extended data handling mode SYNOPSIS
#include <libssh2.h> int libssh2_channel_handle_extended_data2(LIBSSH2_CHANNEL *channel, int ignore_mode); DESCRIPTION
channel - Active channel stream to change extended data handling on. ignore_mode - One of the three LIBSSH2_CHANNEL_EXTENDED_DATA_* Constants. LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL: Queue extended data for eventual reading LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE: Treat extended data and ordinary data the same. Merge all substreams such that calls to libssh2_chan- nel_read(3) will pull from all substreams on a first-in/first-out basis. LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE: Discard all extended data as it arrives. Change how a channel deals with extended data packets. By default all extended data is queued until read by libssh2_channel_read_ex(3) RETURN VALUE
Return 0 on success or LIBSSH2_ERROR_EAGAIN when it would otherwise block. SEE ALSO
libssh2_channel_handle_extended_data(3) libssh2_channel_read_ex(3) libssh2 0.15 1 Jun 2007 libssh2_channel_handle_extended_data2(3)

Check Out this Related Man Page

libssh2_channel_read_ex(3)					  libssh2 manual					libssh2_channel_read_ex(3)

NAME
libssh2_channel_read_ex - read data from a channel stream SYNOPSIS
#include <libssh2.h> ssize_t libssh2_channel_read_ex(LIBSSH2_CHANNEL *channel, int stream_id, char *buf, size_t buflen); ssize_t libssh2_channel_read(LIBSSH2_CHANNEL *channel, char *buf, size_t buflen); ssize_t libssh2_channel_read_stderr(LIBSSH2_CHANNEL *channel, char *buf, size_t buflen); DESCRIPTION
Attempt to read data from an active channel stream. All channel streams have one standard I/O substream (stream_id == 0), and may have up to 2^32 extended data streams as identified by the selected stream_id. The SSH2 protocol currently defines a stream ID of 1 to be the stderr substream. channel - active channel stream to read from. stream_id - substream ID number (e.g. 0 or SSH_EXTENDED_DATA_STDERR) buf - pointer to storage buffer to read data into buflen - size of the buf storage libssh2_channel_read(3) and libssh2_channel_read_stderr(3) are macros. RETURN VALUE
Actual number of bytes read or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIB- SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. Note that a return value of zero (0) can in fact be a legitimate value and only signals that no payload data was read. It is not an error. ERRORS
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_CHANNEL_CLOSED - The channel has been closed. SEE ALSO
libssh2_poll_channel_read(3) libssh2 0.15 1 Jun 2007 libssh2_channel_read_ex(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

about extended memory

Hello Reders In my system i have an extended memory of 129024 k.b which is 126 M.B when i click the system properties i use to get 129520 K.B where does the remainng 484 k.b comes from? apart from extended memory shadow ram 384 k.b basemmemory 640 k cahe ram 256 k my question what... (1 Reply)
Discussion started by: rajashekaran
1 Replies

2. Shell Programming and Scripting

Extract data with awk and write to several files

Hi! I have one file with data that looks like this: 1 data data data data 2 data data data data 3 data data data data . . . 1 data data data data 2 data data data data 3 data data data data . . . I would like to have awk to write each block to a separate file, like this: 1... (3 Replies)
Discussion started by: LinWin
3 Replies

3. Shell Programming and Scripting

Identify extended ascii characters in a file

Hi, Is there a way to identify the lines in a file having extended ascii characters and display the same? For instance I have a file abc.txt having below data aaa|bbb|111|This is first line aaa|bbb|222|This is secõnd line aaa|bbb|333|This is third line aaa|bbb|444|This is foùrth line... (3 Replies)
Discussion started by: decci_7
3 Replies

4. Programming

How to read extended ASCII characters from stdin?

Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Discussion started by: sanzee007
3 Replies