diff options
| author | Eric Reed <ereed@mozilla.com> | 2013-06-17 12:34:58 -0700 |
|---|---|---|
| committer | Eric Reed <ereed@mozilla.com> | 2013-06-17 12:34:58 -0700 |
| commit | e42f28c05cb8e579d06492c49822944946341c9f (patch) | |
| tree | 12ae0385e9a6d39247aaf6e4852c598e3bb9b9fd /src/libstd/rt | |
| parent | 47443753f1197877f51f4a66d3475f8c9e4d5bc2 (diff) | |
| download | rust-e42f28c05cb8e579d06492c49822944946341c9f.tar.gz rust-e42f28c05cb8e579d06492c49822944946341c9f.zip | |
stated to implement UdpStream
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/io/net/udp.rs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/libstd/rt/io/net/udp.rs b/src/libstd/rt/io/net/udp.rs index bb5457e334d..6275eff9249 100644 --- a/src/libstd/rt/io/net/udp.rs +++ b/src/libstd/rt/io/net/udp.rs @@ -8,13 +8,22 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::*; -use super::super::*; -use super::ip::IpAddr; +use option::{Option}; +use rt::io::net::ip::IpAddr; +use rt::io::{Reader, Writer, Listener}; +use rt::rtio::{RtioUdpStreamObject}; -pub struct UdpStream; +pub struct UdpStream { + rtstream: ~RtioUdpStreamObject +} impl UdpStream { + fn new(s: ~RtioUdpStreamObject) -> UdpStream { + UdpStream { + rtstream: s + } + } + pub fn connect(_addr: IpAddr) -> Option<UdpStream> { fail!() } |
