Home

Traffic Server Software Developers Kit

INKVConnWrite

Writes a vconnection.

Prototype

INKVIO INKVConnWrite (INKVConn connp, INKCont contp, INKIOBufferReader readerp, int nbytes)

Description

Initiates a write operation on the vconnection connp. The write operation reads from the buffer reader readerp. The continuation contp is called back with either INK_EVENT_ERROR, INK_EVENT_VCONN_WRITE_READY or INK_EVENT_VCONN_WRITE_COMPLETE (refer to the vconnection user’s view for more information about these events). The number of bytes to write is specified by the nbytes parameter.

Returns

A handle to the vconnection.

INK_ERROR_PTR if an error occurs.