handleQueryResp() — netty Function Reference
Architecture documentation for the handleQueryResp() function in DnsClient.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 306eda2d_b52c_fcba_5c5b_08402e1d1f90["handleQueryResp()"] c3c638e5_9ebc_2b4f_b4ee_c21c8f26e50f["DnsClient"] 306eda2d_b52c_fcba_5c5b_08402e1d1f90 -->|defined in| c3c638e5_9ebc_2b4f_b4ee_c21c8f26e50f d80cfba1_e8be_0f12_c3f4_b9fa5d605fef["main()"] d80cfba1_e8be_0f12_c3f4_b9fa5d605fef -->|calls| 306eda2d_b52c_fcba_5c5b_08402e1d1f90 style 306eda2d_b52c_fcba_5c5b_08402e1d1f90 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/dns/udp/DnsClient.java lines 54–67
private static void handleQueryResp(DatagramDnsResponse msg) {
if (msg.count(DnsSection.QUESTION) > 0) {
DnsQuestion question = msg.recordAt(DnsSection.QUESTION, 0);
System.out.printf("name: %s%n", question.name());
}
for (int i = 0, count = msg.count(DnsSection.ANSWER); i < count; i++) {
DnsRecord record = msg.recordAt(DnsSection.ANSWER, i);
if (record.type() == DnsRecordType.A) {
//just print the IP after query
DnsRawRecord raw = (DnsRawRecord) record;
System.out.println(NetUtil.bytesToIpAddress(ByteBufUtil.getBytes(raw.content())));
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handleQueryResp() do?
handleQueryResp() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/dns/udp/DnsClient.java.
Where is handleQueryResp() defined?
handleQueryResp() is defined in example/src/main/java/io/netty/example/dns/udp/DnsClient.java at line 54.
What calls handleQueryResp()?
handleQueryResp() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free