summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.i
diff options
context:
space:
mode:
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.