Home

Traffic Server Software Developers Kit

INKVIONBytesSet

Sets the number of bytes for the specified IO operation.

Prototype

INKReturnCode INKVIONBytesSet (INKVIO viop, int nbytes)

Description

Sets the number of bytes to be performed by the IO operation described by viop. Only the user of a vconnection should call 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.

Returns

INK_SUCCESS if the number of bytes associated with the IO operation is successfully set.

INK_ERROR if an error occurs.