MCPcopy Create free account
hub / github.com/cloudwego/netpoll / GetSysFdPairs

Function GetSysFdPairs

sys_exec.go:27–30  ·  view source on GitHub ↗

GetSysFdPairs creates and returns the fds of a pair of sockets.

()

Source from the content-addressed store, hash-verified

25
26// GetSysFdPairs creates and returns the fds of a pair of sockets.
27func GetSysFdPairs() (r, w int) {
28 fds, _ := syscall.Socketpair(syscall.AF_UNIX, syscall.SOCK_STREAM, 0)
29 return fds[0], fds[1]
30}
31
32// setTCPNoDelay set the TCP_NODELAY flag on socket
33func setTCPNoDelay(fd int, b bool) (err error) {

Callers 15

TestPollModFunction · 0.85
BenchmarkPollModFunction · 0.85
BenchmarkConnectionIOFunction · 0.85
TestConnectionWriteFunction · 0.85
TestConnectionLargeWriteFunction · 0.85
TestConnectionReadFunction · 0.85
TestConnectionIOReaderFunction · 0.85
TestConnectionUntilFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestPollModFunction · 0.68
BenchmarkPollModFunction · 0.68
BenchmarkConnectionIOFunction · 0.68
TestConnectionWriteFunction · 0.68
TestConnectionLargeWriteFunction · 0.68
TestConnectionReadFunction · 0.68
TestConnectionIOReaderFunction · 0.68
TestConnectionUntilFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…