MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / setOpcode

Method setOpcode

src/main/java/core/org/xbill/DNS/Header.java:198–205  ·  view source on GitHub ↗

Sets the message's opcode @see Opcode

(int value)

Source from the content-addressed store, hash-verified

196 * @see Opcode
197 */
198public void
199setOpcode(int value) {
200 if (value < 0 || value > 0xF)
201 throw new IllegalArgumentException("DNS Opcode " + value +
202 "is out of range");
203 flags &= 0x87FF;
204 flags |= (value << 11);
205}
206
207/**
208 * Retrieves the mesasge's opcode

Callers 3

sendQueryMethod · 0.80
UpdateMethod · 0.80
newQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected