Skip to main content

Module msg

Module msg 

Source
Expand description

Structures that represent SOCKS messages

Re-exportsยง

use crate::Error; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use caret::caret_int; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::net::IpAddr; ๐Ÿ”’
use std::net::Ipv6Addr; ๐Ÿ”’
use tor_error::bad_api_usage; ๐Ÿ”’
use arbitrary::Arbitrary; ๐Ÿ”’
use arbitrary::Arbitrary; ๐Ÿ”’
use arbitrary::Result as ArbitraryResult; ๐Ÿ”’
use arbitrary::Unstructured; ๐Ÿ”’

Structsยง

InvalidSocksVersion
We tried to convert something other than โ€˜4โ€™ or โ€˜5โ€™ to a SOCKS version.
SocksCmd
Command from the socks client telling us what to do.
SocksHostname
A hostname for use with SOCKS. It is limited in length.
SocksReply
The reply from a SOCKS proxy.
SocksRequest
A completed SOCKS request, as negotiated on a SOCKS connection.
SocksStatus
Possible reply status values from a SOCKS5 handshake.

Enumsยง

SocksAddr
An address sent or received as part of a SOCKS handshake
SocksAuth
Provided authentication from a SOCKS handshake
SocksVersion
A supported SOCKS version.

Functionsยง

contains_zeros ๐Ÿ”’
Return true if b contains at least one zero.