Skip to main content

MAX_IP_SOCKET_BATCH_SIZE

Constant MAX_IP_SOCKET_BATCH_SIZE 

Source
pub const MAX_IP_SOCKET_BATCH_SIZE: u32 = 92; // 92u32
Expand description

The largest number of results that can be returned in one call to IpIterator.Next or DestructionWatcher.Watch.

This limit is calculated to fit the maximum number of items into a single 64 KiB Zircon channel message. In the current FIDL wire format, the fixed overhead of the IpIterator.Next() response is 40 bytes, and the worst-case size of a single IpSocketState is 706 bytes, so we selected the maximum N where 40 + N * 706 <= 65535.