MCPcopy Create free account
hub / github.com/facebook/time / HasError

Method HasError

ntp/control/packet.go:317–319  ·  view source on GitHub ↗

HasError returns true if packet has error flag set

()

Source from the content-addressed store, hash-verified

315
316// HasError returns true if packet has error flag set
317func (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
322func (n NTPControlMsgHead) HasMore() bool {

Callers 3

TestMakeREMOpFunction · 0.95
RunMethod · 0.80
ServerStatsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMakeREMOpFunction · 0.76