diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-09 21:55:56 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-09 21:55:56 +0000 |
commit | b0ddce8df84ed3018eae5dfa95e9066c51502a46 (patch) | |
tree | 176b8bc84ff4245d1251c34cbed6e4c5a98b2573 /ace/UNIX_Addr.cpp | |
parent | 764c56388da3507fdd54e5c4f8fc67ff9d8621b5 (diff) | |
download | ATCD-b0ddce8df84ed3018eae5dfa95e9066c51502a46.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/UNIX_Addr.cpp')
-rw-r--r-- | ace/UNIX_Addr.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ace/UNIX_Addr.cpp b/ace/UNIX_Addr.cpp index 0293acf3d3d..5ce54752cf8 100644 --- a/ace/UNIX_Addr.cpp +++ b/ace/UNIX_Addr.cpp @@ -37,7 +37,7 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (void) (void) ACE_OS::memset ((void *) &this->unix_addr_, 0, sizeof this->unix_addr_); } -void +int ACE_UNIX_Addr::set (const ACE_UNIX_Addr &sa) { size_t size = sa.get_size (); @@ -49,6 +49,7 @@ ACE_UNIX_Addr::set (const ACE_UNIX_Addr &sa) this->unix_addr_.sun_family = AF_UNIX; ACE_OS::strcpy (this->unix_addr_.sun_path, sa.unix_addr_.sun_path); + return 0; } // Copy constructor. @@ -59,7 +60,7 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (const ACE_UNIX_Addr &sa) this->set (sa); } -void +int ACE_UNIX_Addr::set (const sockaddr_un *un, int len) { (void) ACE_OS::memset ((void *) &this->unix_addr_, 0, @@ -67,6 +68,7 @@ ACE_UNIX_Addr::set (const sockaddr_un *un, int len) this->unix_addr_.sun_family = AF_UNIX; ACE_OS::strcpy (this->unix_addr_.sun_path, un->sun_path); this->base_set (AF_UNIX, len); + return 0; } ACE_UNIX_Addr::ACE_UNIX_Addr (const sockaddr_un *un, int len) @@ -74,7 +76,7 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (const sockaddr_un *un, int len) this->set (un, len); } -void +int ACE_UNIX_Addr::set (const char rendezvous_point[]) { (void) ACE_OS::memset ((void *) &this->unix_addr_, @@ -92,6 +94,7 @@ ACE_UNIX_Addr::set (const char rendezvous_point[]) sizeof this->unix_addr_ - sizeof (this->unix_addr_.sun_path) + ACE_OS::strlen (this->unix_addr_.sun_path) ); + return 0; } // Create a ACE_Addr from a UNIX pathname. |