pub struct Socks5Server;Expand description
SOCKS5 server for MITM proxy
Implementations§
Source§impl Socks5Server
impl Socks5Server
Sourcepub async fn handle_handshake(stream: &mut TcpStream) -> Result<TargetAddr>
pub async fn handle_handshake(stream: &mut TcpStream) -> Result<TargetAddr>
Handle SOCKS5 client connection Returns the target address if successful
Sourcepub async fn handle_handshake_with_version(
stream: &mut TcpStream,
) -> Result<TargetAddr>
pub async fn handle_handshake_with_version( stream: &mut TcpStream, ) -> Result<TargetAddr>
Handle SOCKS5 client connection when version byte has already been read Returns the target address if successful
Auto Trait Implementations§
impl Freeze for Socks5Server
impl RefUnwindSafe for Socks5Server
impl Send for Socks5Server
impl Sync for Socks5Server
impl Unpin for Socks5Server
impl UnsafeUnpin for Socks5Server
impl UnwindSafe for Socks5Server
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more