Documentation ¶
Overview ¶
Package lcmdefrag contains a defragmenter for LCM messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LCMDefragmenter ¶
type LCMDefragmenter struct {
// contains filtered or unexported fields
}
LCMDefragmenter supports defragmentation of LCM messages.
References
https://lcm-proj.github.io/ https://github.com/lcm-proj/lcm
func NewLCMDefragmenter ¶
func NewLCMDefragmenter() *LCMDefragmenter
NewLCMDefragmenter returns a new LCMDefragmenter.
func (*LCMDefragmenter) Defrag ¶
Defrag takes a reference to an LCM packet and processes it. In case the packet does not need to be defragmented, it immediately returns the as in passed reference. In case in was the last missing fragment, out will be the defragmented packet. If in was a fragment, but we are awaiting more, out will be set to nil. In the case that in was nil, we will just run the internal cleanup of the defragmenter that times out packages. If an error was encountered during defragmentation, out will also be nil, while err will contain further information on the failure.