Skip to content

Commit 65c0589

Browse files
author
Eric Reed
committed
---
yaml --- r: 66030 b: refs/heads/master c: e42f28c h: refs/heads/master v: v3
1 parent 7c8de34 commit 65c0589

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 47443753f1197877f51f4a66d3475f8c9e4d5bc2
2+
refs/heads/master: e42f28c05cb8e579d06492c49822944946341c9f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/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)