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

Function ReadRXTimestamp

timestamp/timestamp.go:177–179  ·  view source on GitHub ↗

ReadRXTimestamp returns HW timestamp from CMSG buffer

(oob []byte, boob int)

Source from the content-addressed store, hash-verified

175 return 0, nil, time.Time{}, err
176 }
177 return bbuf, saddr, timestamp, nil
178}
179
180// ReadPacketWithCMsgBuf writes byte packet into provided packet and cmsg buffer, and returns number of bytes copied to the buffers
181func ReadPacketWithCMsgBuf(connFd int, buf, oob []byte) (int, int, unix.Sockaddr, error) {
182 bbuf, boob, _, saddr, err := unix.Recvmsg(connFd, buf, oob, 0)

Callers 1

handleEventMessagesMethod · 0.92

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…