Lines Matching full:head
40 struct addrinfo* head;
42 // Indicates which free function to use for |head|.
113 void AddressList::Adopt(struct addrinfo* head) {
114 data_ = new Data(head, true /*is_system_created*/);
117 void AddressList::Copy(const struct addrinfo* head, bool recursive) {
118 data_ = new Data(CreateCopyOfAddrinfo(head, recursive),
122 void AddressList::Append(const struct addrinfo* head) {
123 DCHECK(head);
126 new_head = CreateCopyOfAddrinfo(data_->head, true);
129 new_head = data_->head;
135 copy_ptr->ai_next = CreateCopyOfAddrinfo(head, true);
137 // Only the head of the list should have a canonname. Strip any
150 SetPortRecursive(data_->head, port);
154 return GetPortFromAddrinfo(data_->head);
163 Copy(src.head(), true);
170 if (!data_ || !data_->head->ai_canonname)
172 canonical_name->assign(data_->head->ai_canonname);
180 const struct addrinfo* AddressList::head() const {
183 return data_->head;
231 : head(ai), is_system_created(is_system_created) {
232 DCHECK(head);
236 // Call either freeaddrinfo(head), or FreeCopyOfAddrinfo(head), depending on
239 freeaddrinfo(head);
241 FreeCopyOfAddrinfo(head);