diff options
author | Steve Huston <shuston@riverace.com> | 2001-12-04 19:49:59 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2001-12-04 19:49:59 +0000 |
commit | 24727c7ff96bb7fb64979e355eb2fc16b7f51b16 (patch) | |
tree | a962e2e4402f89358f2de49666a9f0a2a22372a3 /ace/OS.i | |
parent | 59d2d92ee64bd1d85baf1641a3896d31724b0b42 (diff) | |
download | ATCD-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.i | 51 |
1 files changed, 26 insertions, 25 deletions
@@ -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 |