2013/3/26 Tanaka Akira <akr / fsij.org>: >> >> Sure, but what is the type of its return value? >> Extended Addrinfo or a new object like Ifaddr? > > I think it should have new class. > > Addrinfo has bunch of methods for a struct sockaddr. > But struct ifaddrs has multiple pointers to struct sockaddr. > It is difficult to deal with them fairly. One more point for new class: Addrinfo is possible to marshal now but struct ifaddrs is impossible to marshal because we don't know about internal of ifa_data. -- Tanaka Akira