4 #include "sockaddr_private.h"
11 SockAddr *SockAddr::new_from_sys(const SysAddr &sa)
13 switch(sa.addr.ss_family)
16 return new InetAddr(sa);
18 return new Inet6Addr(sa);
20 throw invalid_argument("SockAddr::create");
24 SockAddr::SysAddr::SysAddr():
25 size(sizeof(sockaddr_storage))
27 addr.ss_family = AF_UNSPEC;