summaryrefslogtreecommitdiff
path: root/ACE/ace/Sock_Connect.h
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2006-10-23 23:31:00 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2006-10-23 23:31:00 +0000
commit493991791e3c7232fa33f428177dbfc9b666adac (patch)
treef937218c26da44d35b11b3ddeee1804031b5d99a /ACE/ace/Sock_Connect.h
parentfe745d19b69bcac8e99ca5304656eada195cd1c6 (diff)
downloadATCD-493991791e3c7232fa33f428177dbfc9b666adac.tar.gz
ChangeLogTag:Mon Oct 23 02:28:42 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/ace/Sock_Connect.h')
-rw-r--r--ACE/ace/Sock_Connect.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ACE/ace/Sock_Connect.h b/ACE/ace/Sock_Connect.h
index 2df0ec90d21..62aed239861 100644
--- a/ACE/ace/Sock_Connect.h
+++ b/ACE/ace/Sock_Connect.h
@@ -53,6 +53,11 @@ namespace ACE
ACE_UINT32 host_addr = 0,
ACE_HANDLE handle = ACE_INVALID_HANDLE);
+ /// Get fully qualified host/domain name.
+ extern ACE_Export int get_fqdn (ACE_INET_Addr const & addr,
+ char hostname[],
+ size_t len);
+
/**
* Return count and array of all configured IP interfaces on this
* host, rc = 0 on success (count == number of interfaces else -1).
@@ -73,6 +78,17 @@ namespace ACE
/// made. Caller must close the handle.
extern ACE_Export ACE_HANDLE get_handle (void);
+ /// Returns @c true if IPv4 is enabled on the current host; @c false
+ /// if not.
+ /**
+ * This is an execution-time check. If ACE has not been compiled
+ * with @c ACE_HAS_IPV6, it always returns @c true. This function
+ * tries to create a @c PF_INET socket, returning @c true if it
+ * succeeds, and @c false if it fails. Caches the result so it only
+ gets checked once.
+ */
+ extern ACE_Export bool ipv4_enabled (void);
+
/**
* Returns 1 if IPv6 is enabled on the current host; 0 if not.
* This is an execution-time check. If ACE has not been compiled