summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2001-12-04 19:49:59 +0000
committerSteve Huston <shuston@riverace.com>2001-12-04 19:49:59 +0000
commit24727c7ff96bb7fb64979e355eb2fc16b7f51b16 (patch)
treea962e2e4402f89358f2de49666a9f0a2a22372a3 /ace/OS.i
parent59d2d92ee64bd1d85baf1641a3896d31724b0b42 (diff)
downloadATCD-24727c7ff96bb7fb64979e355eb2fc16b7f51b16.tar.gz
ChangeLogTag:Tue Dec 4 14:47:39 2001 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i51
1 files changed, 26 insertions, 25 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 07f8d629040..8e9e0601ec6 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -5950,6 +5950,32 @@ ACE_OS::gethostbyname (const char *name)
# endif /* ACE_HAS_NONCONST_GETBY */
}
+
+ACE_INLINE struct hostent *
+ACE_OS::gethostbyaddr (const char *addr, int length, int type)
+{
+ ACE_OS_TRACE ("ACE_OS::gethostbyaddr");
+# if defined (ACE_PSOS)
+ ACE_UNUSED_ARG (addr);
+ ACE_UNUSED_ARG (length);
+ ACE_UNUSED_ARG (type);
+ ACE_NOTSUP_RETURN (0);
+# elif defined (ACE_HAS_NONCONST_GETBY)
+ ACE_SOCKCALL_RETURN (::gethostbyaddr (ACE_const_cast (char *, addr),
+ (ACE_SOCKET_LEN) length,
+ type),
+ struct hostent *,
+ 0);
+# else
+ ACE_SOCKCALL_RETURN (::gethostbyaddr (addr,
+ (ACE_SOCKET_LEN) length,
+ type),
+ struct hostent *,
+ 0);
+# endif /* ACE_HAS_NONCONST_GETBY */
+}
+
+
ACE_INLINE struct hostent *
ACE_OS::getipnodebyname (const char *name, int family, int flags)
{
@@ -6018,31 +6044,6 @@ ACE_OS::getipnodebyaddr (const void *src, size_t len, int family)
ACE_NOTSUP_RETURN (0);
# endif /* ACE_PSOS */
}
-
-
-ACE_INLINE struct hostent *
-ACE_OS::gethostbyaddr (const char *addr, int length, int type)
-{
- ACE_OS_TRACE ("ACE_OS::gethostbyaddr");
-# if defined (ACE_PSOS)
- ACE_UNUSED_ARG (addr);
- ACE_UNUSED_ARG (length);
- ACE_UNUSED_ARG (type);
- ACE_NOTSUP_RETURN (0);
-# elif defined (ACE_HAS_NONCONST_GETBY)
- ACE_SOCKCALL_RETURN (::gethostbyaddr (ACE_const_cast (char *, addr),
- (ACE_SOCKET_LEN) length,
- type),
- struct hostent *,
- 0);
-# else
- ACE_SOCKCALL_RETURN (::gethostbyaddr (addr,
- (ACE_SOCKET_LEN) length,
- type),
- struct hostent *,
- 0);
-# endif /* ACE_HAS_NONCONST_GETBY */
-}
#endif /* ! VXWORKS */
// It would be really cool to add another version of select that would