aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/linux/udp.rs
blob: 52e4c45693011b7e665ccef0f6aa70097a5103a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}
*/