Skip to content

Commit 23438c0

Browse files
author
Eric Reed
committed
---
yaml --- r: 63446 b: refs/heads/snap-stage3 c: b51d188 h: refs/heads/master v: v3
1 parent 6267ff6 commit 23438c0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9687437d4543c2395b92ebcb910fcaf9d8b2cd44
4+
refs/heads/snap-stage3: b51d1885befe2779fa3fdc9e2a9bafa4ef3d5cf2
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/rt/rtio.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub type RemoteCallbackObject = uvio::UvRemoteCallback;
2222
pub type IoFactoryObject = uvio::UvIoFactory;
2323
pub type RtioTcpStreamObject = uvio::UvTcpStream;
2424
pub type RtioTcpListenerObject = uvio::UvTcpListener;
25+
pub type RtioUdpStreamObject = uvio::UvUdpStream;
2526

2627
pub trait EventLoop {
2728
fn run(&mut self);
@@ -44,6 +45,7 @@ pub trait RemoteCallback {
4445
pub trait IoFactory {
4546
fn tcp_connect(&mut self, addr: IpAddr) -> Result<~RtioTcpStreamObject, IoError>;
4647
fn tcp_bind(&mut self, addr: IpAddr) -> Result<~RtioTcpListenerObject, IoError>;
48+
// TODO fn udp_connect(&mut self, addr: IpAddr) -> Result<~RtioUdpStreamObject, IoError>;
4749
}
4850

4951
pub trait RtioTcpListener {
@@ -54,3 +56,8 @@ pub trait RtioTcpStream {
5456
fn read(&mut self, buf: &mut [u8]) -> Result<uint, IoError>;
5557
fn write(&mut self, buf: &[u8]) -> Result<(), IoError>;
5658
}
59+
60+
pub trait RtioUdpStream {
61+
fn read(&mut self, buf: &mut [u8]) -> Result<uint, IoError>;
62+
fn write(&mut self, buf: &[u8]) -> Result<(), IoError>;
63+
}

0 commit comments

Comments
 (0)