Skip to content

Commit

Permalink
Implement native UDP I/O
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 31, 2013
1 parent 2922697 commit bba78a2
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 113 deletions.
4 changes: 2 additions & 2 deletions src/libnative/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ impl rtio::IoFactory for IoFactory {
fn tcp_bind(&mut self, addr: SocketAddr) -> IoResult<~RtioTcpListener> {
net::TcpListener::bind(addr).map(|s| ~s as ~RtioTcpListener)
}
fn udp_bind(&mut self, _addr: SocketAddr) -> IoResult<~RtioUdpSocket> {
Err(unimpl())
fn udp_bind(&mut self, addr: SocketAddr) -> IoResult<~RtioUdpSocket> {
net::UdpSocket::bind(addr).map(|u| ~u as ~RtioUdpSocket)
}
fn unix_bind(&mut self, _path: &CString) -> IoResult<~RtioUnixListener> {
Err(unimpl())
Expand Down
Loading

5 comments on commit bba78a2

@bors
Copy link
Contributor

@bors bors commented on bba78a2 Jan 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at alexcrichton@bba78a2

@bors
Copy link
Contributor

@bors bors commented on bba78a2 Jan 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/native-udp = bba78a2 into auto

@bors
Copy link
Contributor

@bors bors commented on bba78a2 Jan 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/native-udp = bba78a2 merged ok, testing candidate = 09a561a

@bors
Copy link
Contributor

@bors bors commented on bba78a2 Jan 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on bba78a2 Jan 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 09a561a

Please sign in to comment.