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

Method NewOutboundElement

polyamide/device/send.go:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (device *Device) NewOutboundElement() *QueueOutboundElement {
60 elem := device.GetOutboundElement()
61 elem.buffer = device.GetMessageBuffer()
62 elem.nonce = 0
63 // keypair and peer were cleared (if necessary) by clearPointers.
64 return elem
65}
66
67// clearPointers clears elem fields that contain pointers.
68// This makes the garbage collector's life easier and

Callers 1

SendKeepaliveMethod · 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 2

GetOutboundElementMethod · 0.95
GetMessageBufferMethod · 0.95

Tested by

no test coverage detected