pub trait VirtualSocket: Debug + Send + Sync + 'static {
    fn set_ttl(&mut self, ttl: u32) -> Result<()>;
    fn ttl(&self) -> Result<u32>;
    fn addr_local(&self) -> Result<SocketAddr>;
    fn status(&self) -> Result<SocketStatus>;
}

Required Methods§

Sets how many network hops the packets are permitted for new connections

Returns the maximum number of network hops before packets are dropped

Returns the local address for this socket

Returns the status/state of the socket

Implementors§