diff options
| author | Eric Reed <ereed@mozilla.com> | 2013-06-14 11:39:46 -0700 |
|---|---|---|
| committer | Eric Reed <ereed@mozilla.com> | 2013-06-14 11:39:46 -0700 |
| commit | 74e72551930d4c58e747a60e2b39d3010e40d0ae (patch) | |
| tree | 9f0fc78b44e0fa02186e6398e2d974948122cc10 /src/rt/rust_uv.cpp | |
| parent | 5393e43b5355284cf24f8afcc2088473fa5a318a (diff) | |
| download | rust-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.cpp | 5 |
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) { |
