1libssh2_channel_close(3)            libssh2           libssh2_channel_close(3)
2
3
4

NAME

6       libssh2_channel_close - close a channel
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int
12       libssh2_channel_close(LIBSSH2_CHANNEL *channel);
13

DESCRIPTION

15       channel - active channel stream to set closed status on.
16
17       Close  an  active  data  channel.  In  practice  this  means sending an
18       SSH_MSG_CLOSE packet to the remote host  which  serves  as  instruction
19       that no further data will be sent to it. The remote host may still send
20       data back until it sends its own close message in response. To wait for
21       the  remote  end  to  close its connection as well, follow this command
22       with libssh2_channel_wait_closed(3)
23

RETURN VALUE

25       Return 0 on success or negative on  failure.   It  returns  LIBSSH2_ER‐
26       ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
27       a negative number, it is not really a failure per se.
28

ERRORS

30       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
31

SEE ALSO

33       libssh2_channel_open_ex(3)
34
35
36
37libssh2 0.15                      1 Jun 2007          libssh2_channel_close(3)
Impressum