summaryrefslogtreecommitdiff
path: root/ace/Asynch_Connector.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2003-11-05 18:04:39 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2003-11-05 18:04:39 +0000
commitfc175e8fdac8264be3da80125214adf569c192b0 (patch)
treeadef694538700d233e2f7a8a78ea5c904470e5d4 /ace/Asynch_Connector.cpp
parent6fc8728a47cc8bfa8cb908436379579566a7968e (diff)
downloadATCD-fc175e8fdac8264be3da80125214adf569c192b0.tar.gz
ChangeLogTag:Wed Nov 5 11:58:04 2003 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/Asynch_Connector.cpp')
-rw-r--r--ace/Asynch_Connector.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/ace/Asynch_Connector.cpp b/ace/Asynch_Connector.cpp
index ce7df62330b..01df5b5415e 100644
--- a/ace/Asynch_Connector.cpp
+++ b/ace/Asynch_Connector.cpp
@@ -185,9 +185,15 @@ ACE_Asynch_Connector<HANDLER>::parse_address (const ACE_Asynch_Connect::Result &
ACE_INET_Addr &remote_address,
ACE_INET_Addr &local_address)
{
+#if defined (ACE_HAS_IPV6)
+ // Getting the addresses.
+ sockaddr_in6 local_addr;
+ sockaddr_in6 remote_addr;
+#else
// Getting the addresses.
sockaddr_in local_addr;
sockaddr_in remote_addr;
+#endif /* ACE_HAS_IPV6 */
// Get the length.
int local_size = sizeof (local_addr);
@@ -212,8 +218,8 @@ ACE_Asynch_Connector<HANDLER>::parse_address (const ACE_Asynch_Connect::Result &
ACE_LIB_TEXT("ACE_Asynch_Connector::<getpeername> failed")));
// Set the addresses.
- local_address.set (&local_addr, local_size);
- remote_address.set (&remote_addr, remote_size);
+ local_address.set ((const sockaddr_in *) &local_addr, local_size);
+ remote_address.set ((const sockaddr_in *) &remote_addr, remote_size);
#if 0
// @@ Just debugging.