Class UDPPacketMerger

Class Documentation

class UDPPacketMerger

Merges udp packets together to a complete data packet.

Public Functions

UDPPacketMerger()

Constructor of udp packet merger.

bool isComplete() const

Returns if a data packet is complete.

Returns:

If a data packet is complete.

bool addUDPPacket(const sick::datastructure::PacketBuffer &buffer)

Adds a udp packet to the packet map, when a data packet is complete it will return true.

Parameters:

buffer – The new udp packet.

Returns:

True if a data packet is complete.

sick::datastructure::PacketBuffer getDeployedPacketBuffer()

Get the latest complete data packet.

Returns:

The latest complete data packet.