File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
branches/snap-stage3/src/libstd/rt Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 9687437d4543c2395b92ebcb910fcaf9d8b2cd44
4
+ refs/heads/snap-stage3: b51d1885befe2779fa3fdc9e2a9bafa4ef3d5cf2
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ pub type RemoteCallbackObject = uvio::UvRemoteCallback;
22
22
pub type IoFactoryObject = uvio:: UvIoFactory ;
23
23
pub type RtioTcpStreamObject = uvio:: UvTcpStream ;
24
24
pub type RtioTcpListenerObject = uvio:: UvTcpListener ;
25
+ pub type RtioUdpStreamObject = uvio:: UvUdpStream ;
25
26
26
27
pub trait EventLoop {
27
28
fn run ( & mut self ) ;
@@ -44,6 +45,7 @@ pub trait RemoteCallback {
44
45
pub trait IoFactory {
45
46
fn tcp_connect ( & mut self , addr : IpAddr ) -> Result < ~RtioTcpStreamObject , IoError > ;
46
47
fn tcp_bind ( & mut self , addr : IpAddr ) -> Result < ~RtioTcpListenerObject , IoError > ;
48
+ // TODO fn udp_connect(&mut self, addr: IpAddr) -> Result<~RtioUdpStreamObject, IoError>;
47
49
}
48
50
49
51
pub trait RtioTcpListener {
@@ -54,3 +56,8 @@ pub trait RtioTcpStream {
54
56
fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < uint , IoError > ;
55
57
fn write ( & mut self , buf : & [ u8 ] ) -> Result < ( ) , IoError > ;
56
58
}
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
+ }
You can’t perform that action at this time.
0 commit comments