Dominic Hamon created MESOS-1917:
------------------------------------
Summary: Create IP endpoint struct to abstract IPv4/IPv6 calls
Key: MESOS-1917
URL: https://issues.apache.org/jira/browse/MESOS-1917
Project: Mesos
Issue Type: Task
Components: libprocess
Reporter: Dominic Hamon
Assignee: Evelina Dumitrescu
create a class similar to IPEndPoint[1] that would help work with the
SockaddrStorage struct. This class will avoid placing in the methods statements
like the one (for getting the ip address or address length):
{noformat}
if(family == AF_INET) {
do IPv4 API call
} else if(family == AF_INET6) {
do IPV6 API call
}
{noformat}
(see
https://code.google.com/p/chromium/codesearch#chromium/src/net/base/ip_endpoint.h&cl=GROK&ct=xref_jump_to_def&l=23&gsn=IPEndPoint)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)