public interface DatagramBufferFactory
DatagramBufferFactoryinstances are passed to the encoding methods of
MulticastAnnouncementEncoder, which can encode data to multiple datagram packets (if needed) by writing to multiple buffers obtained from the factory.
|Modifier and Type||Method and Description|
Returns a byte buffer into which to write encoded multicast packet data.
0corresponds to the start of packet data, and the capacity of the buffer indicates the maximum packet size. Encoding methods should start writing data at the initial (non-zero) position of the buffer; the final position of the buffer after the encoding method has returned is used to mark the end of encoded data, which translates into the actual length of the sent packet.
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.