Files
wireguard-rs/src/platform/linux/udp.rs
2019-10-23 12:08:35 +02:00

27 lines
452 B
Rust

use super::super::bind::*;
use super::super::Endpoint;
use std::net::SocketAddr;
pub struct LinuxEndpoint {}
pub struct LinuxBind {}
impl Endpoint for LinuxEndpoint {
fn clear_src(&mut self) {}
fn from_address(addr: SocketAddr) -> Self {
LinuxEndpoint {}
}
fn into_address(&self) -> SocketAddr {
"127.0.0.1:6060".parse().unwrap()
}
}
/*
impl Bind for PlatformBind {
type Endpoint = PlatformEndpoint;
}
*/