MCPcopy Create free account
hub / github.com/apache/trafficserver / write

Method write

example/plugins/c-api/passthru/passthru.cc:95–103  ·  view source on GitHub ↗

Start a write operation.

Source from the content-addressed store, hash-verified

93
94 // Start a write operation.
95 void
96 write(TSVConn vconn, TSCont contp)
97 {
98 TSReleaseAssert(this->vio == nullptr);
99
100 this->iobuf = TSIOBufferCreate();
101 this->reader = TSIOBufferReaderAlloc(this->iobuf);
102 this->vio = TSVConnWrite(vconn, contp, this->reader, INT64_MAX);
103 }
104
105 // Transfer data from this IO object to the target IO object. We use
106 // TSIOBufferCopy to move the data without actually duplicating it.

Callers 4

runMethod · 0.45
connectMethod · 0.45
PassthruSessionEventFunction · 0.45
PassthruAcceptFunction · 0.45

Calls 3

TSIOBufferCreateFunction · 0.85
TSIOBufferReaderAllocFunction · 0.85
TSVConnWriteFunction · 0.85

Tested by 2

runMethod · 0.36
connectMethod · 0.36