We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2922697 commit bba78a2Copy full SHA for bba78a2
src/libnative/io/mod.rs
@@ -166,8 +166,8 @@ impl rtio::IoFactory for IoFactory {
166
fn tcp_bind(&mut self, addr: SocketAddr) -> IoResult<~RtioTcpListener> {
167
net::TcpListener::bind(addr).map(|s| ~s as ~RtioTcpListener)
168
}
169
- fn udp_bind(&mut self, _addr: SocketAddr) -> IoResult<~RtioUdpSocket> {
170
- Err(unimpl())
+ fn udp_bind(&mut self, addr: SocketAddr) -> IoResult<~RtioUdpSocket> {
+ net::UdpSocket::bind(addr).map(|u| ~u as ~RtioUdpSocket)
171
172
fn unix_bind(&mut self, _path: &CString) -> IoResult<~RtioUnixListener> {
173
Err(unimpl())
0 commit comments