From e42f28c05cb8e579d06492c49822944946341c9f Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Mon, 17 Jun 2013 12:34:58 -0700 Subject: [PATCH] stated to implement UdpStream --- src/libstd/rt/io/net/udp.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/libstd/rt/io/net/udp.rs b/src/libstd/rt/io/net/udp.rs index bb5457e334dd..6275eff92498 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 { fail!() }