Sets the number of bytes for the specified IO operation.
INKReturnCode INKVIONBytesSet (INKVIO
viop
, int
nbytes
)
Sets the number of bytes to be performed by the IO
operation described by
. Only the user of a
vconnection should call viop
INKVIONBytesSet
and
even then, the user should do so very carefully: INKVIONBytesSet
should only be used to set the number of bytes to be done by the
IO operation to a value that's greater than or equal to
INKVIONDoneGet
. Common usage of this
function is to indicate to a vconnection that enough IO has been
performed. The user can indicate to the vconnection that the
operation has completed by setting nbytes
to the number done and then re-enabling
the operation.
INK_SUCCESS
if the number of bytes associated
with the IO operation is successfully set.
INK_ERROR
if an error occurs.