GetSysFdPairs creates and returns the fds of a pair of sockets.
()
| 25 | |
| 26 | // GetSysFdPairs creates and returns the fds of a pair of sockets. |
| 27 | func 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 |
| 33 | func setTCPNoDelay(fd int, b bool) (err error) { |
no outgoing calls
searching dependent graphs…