Documentation ¶
Index ¶
- func BlockingRead(fd int, b []byte) (int, *tcpip.Error)
- func BlockingReadv(fd int, iovecs []syscall.Iovec) (int, *tcpip.Error)
- func GetMTU(name string) (uint32, error)
- func NonBlockingWrite(fd int, buf []byte) *tcpip.Error
- func NonBlockingWrite2(fd int, b1, b2 []byte) *tcpip.Error
- func TranslateErrno(e syscall.Errno) *tcpip.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockingRead ¶
BlockingRead reads from a file descriptor that is set up as non-blocking. If no data is available, it will block in a poll() syscall until the file descirptor becomes readable.
func BlockingReadv ¶
BlockingReadv reads from a file descriptor that is set up as non-blocking and stores the data in a list of iovecs buffers. If no data is available, it will block in a poll() syscall until the file descirptor becomes readable.
func NonBlockingWrite ¶
NonBlockingWrite writes the given buffer to a file descriptor. It fails if partial data is written.
func NonBlockingWrite2 ¶
NonBlockingWrite2 writes up to two byte slices to a file descriptor in a single syscall. It fails if partial data is written.
Types ¶
This section is empty.