summaryrefslogtreecommitdiff
path: root/ACE/protocols
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2007-06-28 16:15:15 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2007-06-28 16:15:15 +0000
commitea9648a9a932b272b368a1c640cc2568880af470 (patch)
treefad97ef435550dc1c619186b90f47bd949b4136b /ACE/protocols
parent189825e9d1ed5b5cfb272db52d61259cf867b0ab (diff)
downloadATCD-ea9648a9a932b272b368a1c640cc2568880af470.tar.gz
Thu Jun 28 16:12:18 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'ACE/protocols')
-rw-r--r--ACE/protocols/ace/HTBP/HTBP_Addr.cpp5
-rw-r--r--ACE/protocols/ace/HTBP/HTBP_Addr.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/ACE/protocols/ace/HTBP/HTBP_Addr.cpp b/ACE/protocols/ace/HTBP/HTBP_Addr.cpp
index aff894e80dc..24b837c5e6c 100644
--- a/ACE/protocols/ace/HTBP/HTBP_Addr.cpp
+++ b/ACE/protocols/ace/HTBP/HTBP_Addr.cpp
@@ -82,10 +82,11 @@ ACE::HTBP::Addr::addr_to_string (ACE_TCHAR buffer[],
}
int
-ACE::HTBP::Addr::string_to_addr (const char address[])
+ACE::HTBP::Addr::string_to_addr (const char address[],
+ int address_family)
{
// if (ACE_OS::strchr (address,':'))
- return this->ACE_INET_Addr::string_to_addr(address);
+ return this->ACE_INET_Addr::string_to_addr(address, address_family);
// this->htid_ = address;
// return 0;
}
diff --git a/ACE/protocols/ace/HTBP/HTBP_Addr.h b/ACE/protocols/ace/HTBP/HTBP_Addr.h
index 14241b3c3b6..b19c4cf3be0 100644
--- a/ACE/protocols/ace/HTBP/HTBP_Addr.h
+++ b/ACE/protocols/ace/HTBP/HTBP_Addr.h
@@ -72,7 +72,8 @@ namespace ACE
int addr_to_string (ACE_TCHAR buffer[],
size_t size,
int ipaddr_format = 1) const;
- int string_to_addr (const char address[]);
+ int string_to_addr (const char address[],
+ int address_facmily = AF_UNSPEC);
int set_htid(const char *htid);
const char *get_htid (void) const;