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

Method WriteNotify

polyamide/tun/netstack/tun.go:157–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (tun *netTun) WriteNotify() {
158 pkt := tun.ep.Read()
159 if pkt == nil {
160 return
161 }
162
163 view := pkt.ToView()
164 pkt.DecRef()
165
166 tun.incomingPacket <- view
167}
168
169func (tun *netTun) Close() error {
170 tun.stack.RemoveNIC(1)

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected