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

Method isClosed

polyamide/device/device.go:122–124  ·  view source on GitHub ↗

isClosed reports whether the device is closed (or is closing). See device.state.state comments for how to interpret this value.

()

Source from the content-addressed store, hash-verified

120// isClosed reports whether the device is closed (or is closing).
121// See device.state.state comments for how to interpret this value.
122func (device *Device) isClosed() bool {
123 return device.deviceState() == deviceStateClosed
124}
125
126// isUp reports whether the device is up (or is attempting to come up).
127// See device.state.state comments for how to interpret this value.

Callers 6

TCBatchMethod · 0.95
CloseMethod · 0.95
NewPeerMethod · 0.95
RoutineReadFromTUNMethod · 0.95
SendBuffersMethod · 0.80
StartMethod · 0.80

Implementers 4

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

Calls 1

deviceStateMethod · 0.95

Tested by

no test coverage detected