Lines Matching refs:htons
274 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write()
275 *reinterpret_cast<uint16_t*>(buffer_cur + sizeof(uint16_t)) = htons(qclass); in write()
344 intfields.rtype = htons(rtype); in writeIntFields()
345 intfields.rclass = htons(rclass); in writeIntFields()
347 intfields.rdlen = htons(rdlen); in writeIntFields()
411 header.id = htons(id); in write()
420 header.qdcount = htons(questions.size()); in write()
421 header.ancount = htons(answers.size()); in write()
422 header.nscount = htons(authorities.size()); in write()
423 header.arcount = htons(additionals.size()); in write()
1059 reinterpret_cast<uint16_t*>(response)[0] = htons(header->id); // bytes 0-1: id in makeResponseFromBinaryPacket()
1254 .sin_port = htons(mdns_port), in createListeningSocket()
1273 .sin6_port = htons(mdns_port), in createListeningSocket()