niP2P Stream Attributes

Access these attributes through the nip2pGetAttribute function.

AttributesDescription
nip2p_kStreamAttributeReaderNumElementsForReadingReturns the current number of elements that the reader can read from the stream without creating an underflow condition in the stream.
nip2p_kStreamAttributeReaderSizeInElementsReturns the current size of the reader in number of elements.
nip2p_kStreamAttributeReaderUnderflowReturns a nonzero value if an underflow condition previously occurred in the stream. After reading this attribute, the stream underflow status is reset to zero.
nip2p_kStreamAttributeStreamStateReturns the current state of the stream.
nip2p_kStreamAttributeWriterNumElementsForWritingReturns the current number of elements that the writer can write to the stream without creating an overflow condition in the stream.
nip2p_kStreamAttributeWriterSizeInElementsReturns the current size of the writer in number of elements.
nip2p_kStreamAttributeWriterOverflowReturns a nonzero value if an overflow condition previously occurred in the stream. After reading this attribute, the stream overflow status is reset to zero.