You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/server/connection/bind.rs
+9-14Lines changed: 9 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ use tokio::{
16
16
17
17
/// Socks5 command type `Bind`
18
18
///
19
-
/// By [`wait_request()`](https://docs.rs/socks5-impl/latest/socks5_impl/server/connection/struct.Authenticated.html#method.wait_request)
20
-
/// on an [`Authenticated`](https://docs.rs/socks5-impl/latest/socks5_impl/server/connection/struct.Authenticated.html) from SOCKS5 client,
19
+
/// By [`wait_request`](crate::server::connection::Authenticated::wait_request)
20
+
/// on an [`Authenticated`](crate::server::connection::Authenticated) from SOCKS5 client,
21
21
/// you may get a `Bind<NeedFirstReply>`. After replying the client 2 times
22
-
/// using [`reply()`](https://docs.rs/socks5-impl/latest/socks5_impl/server/connection/struct.Bind.html#method.reply),
22
+
/// using [`reply()`](crate::server::connection::Bind::reply),
23
23
/// you will get a `Bind<Ready>`, which can be used as a regular async TCP stream.
24
24
///
25
25
/// A `Bind<S>` can be converted to a regular tokio [`TcpStream`](https://docs.rs/tokio/latest/tokio/net/struct.TcpStream.html) by using the `From` trait.
@@ -79,8 +79,7 @@ impl Bind<NeedFirstReply> {
79
79
80
80
/// Reads the linger duration for this socket by getting the `SO_LINGER` option.
/// If the handshake succeeds, an [`Authenticated`](https://docs.rs/socks5-impl/latest/socks5_impl/server/connection/struct.Authenticated.html)
102
-
/// alongs with the output of the [`AuthExecutor`](https://docs.rs/socks5-impl/latest/socks5_impl/server/auth/trait.AuthExecutor.html) adapter is returned.
100
+
/// If the handshake succeeds, an [`Authenticated`]
101
+
/// alongs with the output of the [`AuthExecutor`](crate::server::auth::AuthExecutor) adapter is returned.
103
102
/// Otherwise, the error and the original [`TcpStream`](https://docs.rs/tokio/latest/tokio/net/struct.TcpStream.html) is returned.
104
103
///
105
104
/// Note that this method will not implicitly close the connection even if the handshake failed.
@@ -144,7 +143,7 @@ impl<O> From<IncomingConnection<O>> for TcpStream {
144
143
/// A TCP stream that has been authenticated.
145
144
///
146
145
/// To get the command from the SOCKS5 client, use
0 commit comments