[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document attaches special meaning to a few commonly used words. The meaning of each of these words in the context of this document is defined here. In particular, please note the special meanings of the words "size" and "length." Understanding the special meaning of these terms is critical to understanding this document.
The length of a receive buffer is the number of bytes that may be safely copied into the buffer.
gm_mtu(port)
(usually 4096 bytes) to
bound the time any packet can monopolize network resource. Note that
multiple packets are required to send large messages over the network,
but the segmentation of messages into packets and reassembly of
packets into messages is performed automatically by GM.
log (length + 8) 2 |
where length is the length of the message.
The size of a receive buffer is any positive integer less than or equal to
log (length + 8) 2 |
where length is the length of the buffer. Consequently, a buffer of size size must have a length of at least
size 2 - 8. |
The function gm_min_size_for_length(length)
can be used to
compute the minimum size for any length, and the function
gm_max_length_for_size(size)
can be used to compute the
maximum length for any size.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |