Lines Matching refs:ai_
129 AddrInfo() : ai_(nullptr), error_(0) {} in AddrInfo()
131 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { in AddrInfo()
135 AddrInfo(const char* node, const char* service) : ai_(nullptr) { in AddrInfo()
143 error_ = getaddrinfo(node, service, &hints, &ai_); in init()
149 error_ = getaddrinfo(node, service, nullptr, &ai_); in init()
154 if (ai_ != nullptr) { in clear()
155 freeaddrinfo(ai_); in clear()
156 ai_ = nullptr; in clear()
161 const addrinfo& operator*() const { return *ai_; } in operator *()
162 const addrinfo* get() const { return ai_; } in get()
163 const addrinfo* operator&() const { return ai_; } in operator &()
167 addrinfo* ai_; member in AddrInfo