changed NOTE to TODO

This commit is contained in:
Eric Reed 2013-06-26 13:48:49 -07:00
parent ce97bd4c8b
commit 42f3f069fa
2 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ pub fn ip4_as_uv_ip4<T>(addr: IpAddr, f: &fn(*sockaddr_in) -> T) -> T {
}
}
}
_ => fail!() // NOTE ipv6
_ => fail!() // TODO ipv6
}
}
@ -279,7 +279,7 @@ impl UdpWatcher {
}
}
}
_ => fail!() // NOTE ipv6
_ => fail!() // TODO ipv6
}
}
@ -299,7 +299,7 @@ impl UdpWatcher {
return (*alloc_cb)(suggested_size as uint);
}
/* NOTE the socket address should actually be a pointer to
/* TODO the socket address should actually be a pointer to
either a sockaddr_in or sockaddr_in6.
In libuv, the udp_recv callback takes a struct *sockaddr */
extern fn recv_cb(handle: *uvll::uv_udp_t, nread: ssize_t, buf: Buf,
@ -336,7 +336,7 @@ impl UdpWatcher {
}
}
}
_ => fail!() // NOTE ipv6
_ => fail!() // TODO ipv6
}
extern fn send_cb(req: *uvll::uv_udp_send_t, status: c_int) {

View File

@ -481,7 +481,7 @@ impl RtioUdpSocket for UvUdpSocket {
let task_cell = Cell::new(task);
let alloc: AllocCallback = |_| unsafe { slice_to_uv_buf(*buf_ptr) };
do self.recv_start(alloc) |watcher, nread, _buf, addr, flags, status| {
let _ = flags; // NOTE add handling for partials?
let _ = flags; // TODO add handling for partials?
watcher.recv_stop();