Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
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):
if(family == AF_INET) { do IPv4 API call } else if(family == AF_INET6) { do IPV6 API call }