We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4744375 commit e42f28cCopy full SHA for e42f28c
src/libstd/rt/io/net/udp.rs
@@ -8,13 +8,22 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-use prelude::*;
12
-use super::super::*;
13
-use super::ip::IpAddr;
+use option::{Option};
+use rt::io::net::ip::IpAddr;
+use rt::io::{Reader, Writer, Listener};
14
+use rt::rtio::{RtioUdpStreamObject};
15
-pub struct UdpStream;
16
+pub struct UdpStream {
17
+ rtstream: ~RtioUdpStreamObject
18
+}
19
20
impl UdpStream {
21
+ fn new(s: ~RtioUdpStreamObject) -> UdpStream {
22
+ UdpStream {
23
+ rtstream: s
24
+ }
25
26
+
27
pub fn connect(_addr: IpAddr) -> Option<UdpStream> {
28
fail!()
29
}
0 commit comments