summaryrefslogtreecommitdiff
path: root/ace/UNIX_Addr.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-03-25 01:01:50 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-03-25 01:01:50 +0000
commitb8c6347b29f1655df9fb7a6c4b0b0a1aa16cb855 (patch)
tree4c7951b8a861b75a361fed329184e37dfa4a6bbc /ace/UNIX_Addr.cpp
parent35c3c290bff12300023bd0e4db86cf5a138dff19 (diff)
downloadATCD-b8c6347b29f1655df9fb7a6c4b0b0a1aa16cb855.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/UNIX_Addr.cpp')
-rw-r--r--ace/UNIX_Addr.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/ace/UNIX_Addr.cpp b/ace/UNIX_Addr.cpp
index 74a694f2b22..0293acf3d3d 100644
--- a/ace/UNIX_Addr.cpp
+++ b/ace/UNIX_Addr.cpp
@@ -37,10 +37,8 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (void)
(void) ACE_OS::memset ((void *) &this->unix_addr_, 0, sizeof this->unix_addr_);
}
-// Copy constructor.
-
-ACE_UNIX_Addr::ACE_UNIX_Addr (const ACE_UNIX_Addr &sa)
- : ACE_Addr (AF_UNIX, sa.get_size ())
+void
+ACE_UNIX_Addr::set (const ACE_UNIX_Addr &sa)
{
size_t size = sa.get_size ();
@@ -53,6 +51,14 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (const ACE_UNIX_Addr &sa)
ACE_OS::strcpy (this->unix_addr_.sun_path, sa.unix_addr_.sun_path);
}
+// Copy constructor.
+
+ACE_UNIX_Addr::ACE_UNIX_Addr (const ACE_UNIX_Addr &sa)
+ : ACE_Addr (AF_UNIX, sa.get_size ())
+{
+ this->set (sa);
+}
+
void
ACE_UNIX_Addr::set (const sockaddr_un *un, int len)
{