mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-11 08:59:34 +00:00
remove trait UdpProxy
This commit is contained in:
parent
3c09c2699d
commit
17566451cf
1 changed files with 0 additions and 5 deletions
|
@ -196,11 +196,6 @@ pub(crate) trait TcpProxy {
|
|||
fn get_udp_associate(&self) -> Option<SocketAddr>;
|
||||
}
|
||||
|
||||
pub(crate) trait UdpProxy {
|
||||
fn send_frame(&mut self, destination: &Address, frame: &[u8]) -> Result<(), Error>;
|
||||
fn receive_frame(&mut self, source: &SocketAddr, frame: &[u8]) -> Result<(), Error>;
|
||||
}
|
||||
|
||||
pub(crate) trait ConnectionManager {
|
||||
fn new_tcp_proxy(&self, info: &ConnectionInfo, udp_associate: bool) -> Result<Box<dyn TcpProxy>>;
|
||||
fn close_connection(&self, info: &ConnectionInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue