handleQueryResp() — netty Function Reference
Architecture documentation for the handleQueryResp() function in TcpDnsClient.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 42611615_134a_300f_56c1_226f1fc075c0["handleQueryResp()"] b78736d4_8edb_d42a_2963_35bd4229b033["TcpDnsClient"] 42611615_134a_300f_56c1_226f1fc075c0 -->|defined in| b78736d4_8edb_d42a_2963_35bd4229b033 cd1c434a_06e1_fddb_85cd_040fdb61f8c4["main()"] cd1c434a_06e1_fddb_85cd_040fdb61f8c4 -->|calls| 42611615_134a_300f_56c1_226f1fc075c0 style 42611615_134a_300f_56c1_226f1fc075c0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/dns/tcp/TcpDnsClient.java lines 57–70
private static void handleQueryResp(DefaultDnsResponse 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/tcp/TcpDnsClient.java.
Where is handleQueryResp() defined?
handleQueryResp() is defined in example/src/main/java/io/netty/example/dns/tcp/TcpDnsClient.java at line 57.
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