about summary refs log tree commit diff
path: root/src/libstd/rt/io
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-09-04 18:51:14 -0700
committerBrian Anderson <banderson@mozilla.com>2013-09-05 14:22:15 -0700
commitc218694cece7c3018b4a809a52a35fcf3716d92e (patch)
treef7abe1b9d5c3f57310718e075590a8cba865e99a /src/libstd/rt/io
parentb3f7f758b1f3df8c1d2ded808492b452e4b0e1a0 (diff)
downloadrust-c218694cece7c3018b4a809a52a35fcf3716d92e.tar.gz
rust-c218694cece7c3018b4a809a52a35fcf3716d92e.zip
std::rt: Add libuv bindings for getaddrinfo
Diffstat (limited to 'src/libstd/rt/io')
-rw-r--r--src/libstd/rt/io/net/mod.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libstd/rt/io/net/mod.rs b/src/libstd/rt/io/net/mod.rs
new file mode 100644
index 00000000000..8f316364d27
--- /dev/null
+++ b/src/libstd/rt/io/net/mod.rs
@@ -0,0 +1,21 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+use rt::io::net::ip::IpAddr;
+
+fn get_host_addresses(host: &str) -> Option<~[IpAddr]> {
+    /*!
+     * Get the IP addresses for a given host name.
+     *
+     * Raises io_error on failure.
+     */
+
+    fail!()
+}