{
numberOfFullPackets--;
lastPacketSize = packetDataMaxSize;
}
PacketHeader_1_0 header;
// Send all the packets except the last
//
int i = 0; // is out because it will be used later
for (; i < numberOfFullPackets; i++)
{
header = new PacketHeader_1_0 (MulticastUtil.MAGIC, MulticastUtil.HDR_VERSION,
MulticastUtil.BIG_ENDIAN, packetDataMaxSize, i, numberOfPackets,
messageId);
sendMIOPPacket (header, data, offset + i * packetDataMaxSize,
packetDataMaxSize);
}
// now the last ...
header = new PacketHeader_1_0 (MulticastUtil.MAGIC, MulticastUtil.HDR_VERSION,
(byte)(MulticastUtil.BIG_ENDIAN | MulticastUtil.STOP_FLAG), lastPacketSize, i,
numberOfPackets, messageId);
sendMIOPPacket (header, data, offset + i * packetDataMaxSize, lastPacketSize);
}