summaryrefslogtreecommitdiff
path: root/src/channel.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-05 10:06:06 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-05 10:06:06 -0700
commita5b82f08b6aad3b38d9a80df98a13252e700e72d (patch)
treec3d6d2de7869ed9f46e7d7f323bb94b815f5bb0f /src/channel.rs
parenta7ef29e8369ca9c578ccb48bfc26bc5478d563fe (diff)
downloadssh2-rs-a5b82f08b6aad3b38d9a80df98a13252e700e72d.zip
Update to rust master
Diffstat (limited to 'src/channel.rs')
-rw-r--r--src/channel.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/channel.rs b/src/channel.rs
index a3a0567..3301610 100644
--- a/src/channel.rs
+++ b/src/channel.rs
@@ -188,8 +188,8 @@ impl<'a> Channel<'a> {
/// Groups of substreams may be flushed by passing on of the following
/// constants
///
- /// * FlushExtendedData - Flush all extended data substreams
- /// * FlushAll - Flush all substreams
+ /// * FLUSH_EXTENDED_DATA - Flush all extended data substreams
+ /// * FLUSH_ALL - Flush all substreams
pub fn flush_stream(&mut self, stream_id: uint) -> Result<(), Error> {
unsafe {
self.sess.rc(raw::libssh2_channel_flush_ex(self.raw,
@@ -199,7 +199,7 @@ impl<'a> Channel<'a> {
/// Flush the stderr buffers.
pub fn flush_stderr(&mut self) -> Result<(), Error> {
- self.flush_stream(::ExtendedDataStderr)
+ self.flush_stream(::EXTENDED_DATA_STDERR)
}
/// Write data to a channel stream.
@@ -221,7 +221,7 @@ impl<'a> Channel<'a> {
/// Write data to the channel stderr stream.
pub fn write_stderr(&mut self, data: &[u8]) -> Result<(), Error> {
- self.write_stream(::ExtendedDataStderr, data)
+ self.write_stream(::EXTENDED_DATA_STDERR, data)
}
/// Get the remote exit signal.
@@ -302,7 +302,7 @@ impl<'a> Channel<'a> {
/// Read from the stderr stream .
pub fn read_stderr(&mut self, data: &mut [u8]) -> Result<uint, Error> {
- self.read_stream(::ExtendedDataStderr, data)
+ self.read_stream(::EXTENDED_DATA_STDERR, data)
}
/// Set an environment variable in the remote channel's process space.