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

Function recvoob

timestamp/timestamp_linux.go:252–263  ·  view source on GitHub ↗

recvoob receives only OOB message from the socket This is used for TX timestamp read of MSG_ERRQUEUE where we couldn't care less about other data. This is partially based on Recvmsg https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/syscall/syscall_linux.go#L647

(connFd int, oob []byte)

Source from the content-addressed store, hash-verified

250 n, err := poll(fds, &timeout, nil)
251 if errors.Is(err, syscall.EINTR) {
252 continue
253 }
254 if err != nil {
255 return err
256 }
257 if n == 0 {
258 return syscall.ETIMEDOUT
259 }
260 return nil
261 }
262}
263
264// recvoob receives only OOB message from the socket
265// This is used for TX timestamp read of MSG_ERRQUEUE where we couldn't care less about other data.
266// This is partially based on Recvmsg

Callers 2

ReadTXtimestampBufFunction · 0.85
ReadTimeStampSeqIDBufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…