nn::nex::RootTransport::EnablePacketHistoryBundling Member Function

Syntax

static void EnablePacketHistoryBundling(
     qBool b
);

Parameters

Name Description
in b Sets whether to perform bundling. The default is off (false).

Return Values

None.

Description

Specifies whether to enable the feature for bundling and re-sending packets previously sent.

When sending a new packet for a duplicated object, packets already sent in the past by the sender are included in a single packet and sent. This helps improve the deliverability of unreliable packets. To guarantee that packets are resent at least once, resend is performed once even if there is no opportunity to bundle packets. Unreliable packets are always bundled, whereas the EnableReliablePacketHistoryBundling specification is followed for reliable packets. Bundling is not performed if the packet payload size is 1364 bytes or higher.

If the number of packets is small, to increase the chance of packets being sent you must set nn::nex::Stream::GetSettings().GetBundling().Disable(); (no bundling). If the number of packets is large, to decrease the load you must set nn::nex::Stream::GetSettings().GetBundling().Enable(0); (no timeout and bundle the packets accumulated in the buffer).

See Also

IsEnablePacketHistoryBundling, EnableReliablePacketHistoryBundling

Revision History

2011/08/02
Initial version.

CONFIDENTIAL