From 24727c7ff96bb7fb64979e355eb2fc16b7f51b16 Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Tue, 4 Dec 2001 19:49:59 +0000 Subject: ChangeLogTag:Tue Dec 4 14:47:39 2001 Steve Huston --- ace/OS.i | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'ace/OS.i') 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 -- cgit v1.2.1