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

Method write

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

Source from the content-addressed store, hash-verified

101 }
102
103 void
104 write(TSVConn vc, TSCont contp)
105 {
106 TSReleaseAssert(this->vio == nullptr);
107 this->iobuf = TSIOBufferCreate();
108 TSReleaseAssert(this->iobuf);
109 this->reader = TSIOBufferReaderAlloc(this->iobuf);
110 TSReleaseAssert(this->reader);
111
112 this->vio = TSVConnWrite(vc, contp, this->reader, INT64_MAX);
113 }
114};
115
116// A simple encapsulation of the IO state of a TSVConn. We need the TSVConn itself, and the

Callers 1

InterceptInterceptHookFunction · 0.45

Calls 3

TSIOBufferCreateFunction · 0.85
TSIOBufferReaderAllocFunction · 0.85
TSVConnWriteFunction · 0.85

Tested by

no test coverage detected