Struct shadowsocks_service::net::mon_socket::MonProxySocket [−][src]
pub struct MonProxySocket { /* fields omitted */ }
Expand description
Monitored ProxySocket
Implementations
Create a new socket with flow monitor
Send a UDP packet to addr through proxy
Send a UDP packet to target from proxy
Receive packet from Shadowsocks’ UDP server
This function will use recv_buf
to store intermediate data, so it has to be big enough to store the whole shadowsocks’ packet
It is recommended to allocate a buffer to have at least 65536 bytes.
Receive packet from Shadowsocks’ UDP server
This function will use recv_buf
to store intermediate data, so it has to be big enough to store the whole shadowsocks’ packet
It is recommended to allocate a buffer to have at least 65536 bytes.
Auto Trait Implementations
impl !RefUnwindSafe for MonProxySocket
impl Send for MonProxySocket
impl Sync for MonProxySocket
impl Unpin for MonProxySocket
impl !UnwindSafe for MonProxySocket
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more