Sets the message's opcode @see Opcode
(int value)
| 196 | * @see Opcode |
| 197 | */ |
| 198 | public void |
| 199 | setOpcode(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 |