summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWez Furlong <wez@wezfurlong.org>2019-08-01 09:39:11 -0700
committerWez Furlong <wez@wezfurlong.org>2019-08-01 09:39:11 -0700
commit8f580e16d9bce9c6cf7ad529f0b8fa444f6de505 (patch)
tree3ff58bd88023e3280c494c9ca2d36d32a3296d6c /src
parent13883d56348bdbbd20c092081db84ffa6930bab2 (diff)
downloadssh2-rs-8f580e16d9bce9c6cf7ad529f0b8fa444f6de505.zip
fixup rustdocs
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0d5a3b8..db3591a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -38,7 +38,8 @@
//! // Connect to the local SSH server
//! let tcp = TcpStream::connect("127.0.0.1:22").unwrap();
//! let mut sess = Session::new().unwrap();
-//! sess.handshake(tcp).unwrap();
+//! sess.set_tcp_stream(tcp);
+//! sess.handshake().unwrap();
//!
//! // Try to authenticate with the first identity in the agent.
//! sess.userauth_agent("username").unwrap();
@@ -56,7 +57,8 @@
//! // Connect to the local SSH server
//! let tcp = TcpStream::connect("127.0.0.1:22").unwrap();
//! let mut sess = Session::new().unwrap();
-//! sess.handshake(tcp).unwrap();
+//! sess.set_tcp_stream(tcp);
+//! sess.handshake().unwrap();
//!
//! sess.userauth_password("username", "password").unwrap();
//! assert!(sess.authenticated());
@@ -72,7 +74,8 @@
//! // Connect to the local SSH server
//! let tcp = TcpStream::connect("127.0.0.1:22").unwrap();
//! let mut sess = Session::new().unwrap();
-//! sess.handshake(tcp).unwrap();
+//! sess.set_tcp_stream(tcp);
+//! sess.handshake().unwrap();
//! sess.userauth_agent("username").unwrap();
//!
//! let mut channel = sess.channel_session().unwrap();
@@ -95,7 +98,8 @@
//! // Connect to the local SSH server
//! let tcp = TcpStream::connect("127.0.0.1:22").unwrap();
//! let mut sess = Session::new().unwrap();
-//! sess.handshake(tcp).unwrap();
+//! sess.set_tcp_stream(tcp);
+//! sess.handshake().unwrap();
//! sess.userauth_agent("username").unwrap();
//!
//! let mut remote_file = sess.scp_send(Path::new("remote"),
@@ -114,7 +118,8 @@
//! // Connect to the local SSH server
//! let tcp = TcpStream::connect("127.0.0.1:22").unwrap();
//! let mut sess = Session::new().unwrap();
-//! sess.handshake(tcp).unwrap();
+//! sess.set_tcp_stream(tcp);
+//! sess.handshake().unwrap();
//! sess.userauth_agent("username").unwrap();
//!
//! let (mut remote_file, stat) = sess.scp_recv(Path::new("remote")).unwrap();