Sets the current watermark for the specified buffer.
INKReturnCode INKIOBufferWaterMarkSet (INKIOBuffer
bufp
,int
water_mark
)
INKIOBuffer
is the bufp
IOBuffer
whose watermark is to be set.
int
is
the watermark value to set for
water_mark
.bufp
Sets the current watermark of the specified buffer.
A water mark applies only to a NetVConnection
and should
therefore be used only when reading data from one. When the watermark is
set to N and after INKVConnRead
is called, the net processor calls back
the reader (with an event INK_VCONN_READ_READY
)
only when at least N bytes of data are available for
reading.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.