[−][src]Function koibumi_socks::connect_with_password
pub async fn connect_with_password<S>(
server: &mut S,
username: impl AsRef<[u8]>,
password: impl AsRef<[u8]>,
destination: SocketAddr
) -> Result<SocketAddr> where
S: AsyncRead + AsyncWrite + Unpin,
Connects to an arbitrary network destination via a SOCKS5 server.
The SOCKS5 server is specified by a TCP socket which is already connected to the SOCKS5 server.
The username/password authentication method is used. A username and a password are specified by arguments.