about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
authorEric Reed <ereed@mozilla.com>2013-06-14 11:39:46 -0700
committerEric Reed <ereed@mozilla.com>2013-06-14 11:39:46 -0700
commit74e72551930d4c58e747a60e2b39d3010e40d0ae (patch)
tree9f0fc78b44e0fa02186e6398e2d974948122cc10 /src/rt/rust_uv.cpp
parent5393e43b5355284cf24f8afcc2088473fa5a318a (diff)
downloadrust-74e72551930d4c58e747a60e2b39d3010e40d0ae.tar.gz
rust-74e72551930d4c58e747a60e2b39d3010e40d0ae.zip
Added a utility function to extract the udp handle from udp send requests.
Diffstat (limited to 'src/rt/rust_uv.cpp')
-rw-r--r--src/rt/rust_uv.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp
index 67a2f614b69..2fb9dc2f1a2 100644
--- a/src/rt/rust_uv.cpp
+++ b/src/rt/rust_uv.cpp
@@ -330,6 +330,11 @@ rust_uv_udp_recv_stop(uv_udp_t* server) {
     return uv_udp_recv_stop(server);
 }
 
+extern "C" uv_udp_t*
+rust_uv_get_udp_handle_from_send_req(uv_udp_send_t* send_req) {
+    return send_req->handle;
+}
+
 extern "C" int
 rust_uv_listen(uv_stream_t* stream, int backlog,
         uv_connection_cb cb) {