Skip to content

Commit e42f28c

Browse files
author
Eric Reed
committed
stated to implement UdpStream
1 parent 4744375 commit e42f28c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/libstd/rt/io/net/udp.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use prelude::*;
12-
use super::super::*;
13-
use super::ip::IpAddr;
11+
use option::{Option};
12+
use rt::io::net::ip::IpAddr;
13+
use rt::io::{Reader, Writer, Listener};
14+
use rt::rtio::{RtioUdpStreamObject};
1415

15-
pub struct UdpStream;
16+
pub struct UdpStream {
17+
rtstream: ~RtioUdpStreamObject
18+
}
1619

1720
impl UdpStream {
21+
fn new(s: ~RtioUdpStreamObject) -> UdpStream {
22+
UdpStream {
23+
rtstream: s
24+
}
25+
}
26+
1827
pub fn connect(_addr: IpAddr) -> Option<UdpStream> {
1928
fail!()
2029
}

0 commit comments

Comments
 (0)