array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ssh2-send-eof.php', 1 => 'ssh2_send_eof', ), 'up' => array ( 0 => 'ref.ssh2.php', 1 => 'SSH2 函数', ), 'prev' => array ( 0 => 'function.ssh2-scp-send.php', 1 => 'ssh2_scp_send', ), 'next' => array ( 0 => 'function.ssh2-sftp-chmod.php', 1 => 'ssh2_sftp_chmod', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ssh2/functions/ssh2-send-eof.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ssh2 >= 1.3)
ssh2_send_eof — Send EOF to stream
Sends an EOF to the stream; this is typically used to close standard input, while keeping output and error alive. For example, one can send a remote process some data over standard input, close it to start processing, and still be able to read out the results without creating additional files.
channel
An SSH stream; can be acquired through functions like ssh2_fetch_stream() or ssh2_connect().