HasError returns true if packet has error flag set
()
| 315 | |
| 316 | // HasError returns true if packet has error flag set |
| 317 | func (n NTPControlMsgHead) HasError() bool { |
| 318 | return n.REMOp&0x40 != 0 // error flag, bit 6 |
| 319 | } |
| 320 | |
| 321 | // HasMore returns true if packet has More flag set |
| 322 | func (n NTPControlMsgHead) HasMore() bool { |
no outgoing calls