[ https://issues.apache.org/jira/browse/GEODE-9327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494301#comment-17494301 ]
ASF GitHub Bot commented on GEODE-9327: --------------------------------------- gaussianrecurrence commented on a change in pull request #815: URL: https://github.com/apache/geode-native/pull/815#discussion_r809573438 ########## File path: cppcache/src/ClientProxyMembershipID.cpp ########## @@ -77,21 +77,13 @@ ClientProxyMembershipID::ClientProxyMembershipID( } void ClientProxyMembershipID::initHostAddressVector( - const ACE_INET_Addr& address) { - if (address.get_type() == AF_INET6) { - const auto socketAddress6 = - static_cast<const struct sockaddr_in6*>(address.get_addr()); - auto socketAddress = - reinterpret_cast<const uint8_t*>(&socketAddress6->sin6_addr); - auto length = sizeof(socketAddress6->sin6_addr); - m_hostAddr.assign(socketAddress, socketAddress + length); + const boost::asio::ip::address& address) { + if (address.is_v6()) { + auto bytes = address.to_v6().to_bytes(); + m_hostAddr.assign(bytes.begin(), bytes.end()); Review comment: Good point! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Remove all remaining references to ACE networking > ------------------------------------------------- > > Key: GEODE-9327 > URL: https://issues.apache.org/jira/browse/GEODE-9327 > Project: Geode > Issue Type: Improvement > Components: native client > Reporter: Mario Salazar de Torres > Assignee: Mario Salazar de Torres > Priority: Major > Labels: obliterate-ace, pull-request-available > > *AS A* native client contributor > *I WANT TO* remove all remaining references to ACE networking > *SO THAT* eventually we can get rid of ACE library > -- This message was sent by Atlassian Jira (v8.20.1#820001)