summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.i
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2001-03-23 04:51:31 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2001-03-23 04:51:31 +0000
commit802dd148df768ecbd9b4691229bd2280d0833924 (patch)
treedc1c151e4e985d3bdfb7c684d1a2b6fd1f14b8df /ace/INET_Addr.i
parentb787e7a5df2a9ff183b3b5e76da0b7384977c2e5 (diff)
downloadATCD-802dd148df768ecbd9b4691229bd2280d0833924.tar.gz
ChangeLogTag: Thu Mar 22 21:33:37 2001 Chris Cleeland <cleeland_c@ociweb.com>
Diffstat (limited to 'ace/INET_Addr.i')
-rw-r--r--ace/INET_Addr.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/INET_Addr.i b/ace/INET_Addr.i
index c0197cc9572..912e8628c37 100644
--- a/ace/INET_Addr.i
+++ b/ace/INET_Addr.i
@@ -33,7 +33,17 @@ ACE_INLINE const char *
ACE_INET_Addr::get_host_addr (void) const
{
ACE_TRACE ("ACE_INET_Addr::get_host_addr");
+#if defined (VXWORKS)
+ // It would be nice to be able to encapsulate this into
+ // ACE_OS::inet_ntoa(), but that would lead to either inefficiencies
+ // on vxworks or lack of thread safety.
+ //
+ // So, we use the way that vxworks suggests.
+ inet_ntoa_b (this->inet_addr_.sin_addr, this->buf_);
+ return &buf_[0];
+#else /* VXWORKS */
return ACE_OS::inet_ntoa (this->inet_addr_.sin_addr);
+#endif /* VXWORKS */
}
// Return the 4-byte IP address, converting it into host byte order.