Home

Traffic Server Software Developers Kit

INKVConnRead

Reads a vconnection.

Prototype

INKVIO INKVConnRead (INKVConn connp, INKCont contp, INKIOBuffer bufp, int nbytes)

Description

Initiates a read operation on the vconnection connp. The read operation writes into the buffer bufp. The continuation contp is called back with either INK_EVENT_ERROR, INK_EVENT_VCONN_READ_READY, INK_EVENT_VCONN_READ_COMPLETE, or INK_EVENT_VCONN_EOS (refer to the vconnection user’s view for more information about these events). The number of bytes to read is specified by the nbytes parameter.

Returns

A handle to the vconnection.

INK_ERROR_PTR if an error occurs.