summaryrefslogtreecommitdiff
path: root/util/sock.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-04-08 13:38:23 -0700
committerAaron <aaron@10gen.com>2010-04-08 13:38:23 -0700
commit1007c905b02d7ed456fa5c4b2dfae99ab18c175a (patch)
tree6bb9d35d03def751d074122411f9eb361b6f7ef6 /util/sock.h
parentb051b161975f389814545257368c9cf2310e5921 (diff)
parent89e671b0a262ad71141c87a4f80c0b286b56451d (diff)
downloadmongo-1007c905b02d7ed456fa5c4b2dfae99ab18c175a.tar.gz
Merge branch 'master' of github.com:mongodb/mongo
Diffstat (limited to 'util/sock.h')
-rw-r--r--util/sock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/sock.h b/util/sock.h
index 1699c8313df..4119e2dbf3e 100644
--- a/util/sock.h
+++ b/util/sock.h
@@ -115,6 +115,9 @@ namespace mongo {
// in, look up its ip and return that. Returns "" on failure.
string hostbyname(const char *hostname);
+ void enableIPv6(bool state=true);
+ bool IPv6Enabled();
+
struct SockAddr {
SockAddr() {
addressSize = sizeof(sa);