MCPcopy Create free account
hub / github.com/encodeous/nylon / File

Method File

polyamide/tun/tun.go:22–22  ·  view source on GitHub ↗

File returns the file descriptor of the device.

()

Source from the content-addressed store, hash-verified

20type Device interface {
21 // File returns the file descriptor of the device.
22 File() *os.File
23
24 // Read one or more packets from the Device (without any additional headers).
25 // On a successful read it returns the number of packets read, and sets

Callers 2

mainFunction · 0.65
UAPIOpenFunction · 0.65

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls

no outgoing calls

Tested by

no test coverage detected