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

Method send

src/iocore/net/UnixUDPConnection.cc:119–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Action *
120UDPConnection::send(Continuation *c, UDPPacket *p)
121{
122 UnixUDPConnection *conn = static_cast<UnixUDPConnection *>(this);
123
124 if (shouldDestroy()) {
125 ink_assert(!"freeing packet sent on dead connection");
126 p->free();
127 return nullptr;
128 }
129
130 ink_assert(mutex == c->mutex);
131 p->setContinuation(c);
132 p->setConnection(this);
133 conn->continuation = c;
134 ink_assert(conn->continuation != nullptr);
135 mutex = c->mutex;
136 p->p.reqGenerationNum = conn->sendGenerationNum;
137 get_UDPNetHandler(conn->ethread)->udpOutQueue.send(p);
138 return nullptr;
139}
140
141void
142UDPConnection::Release()

Callers

nothing calls this directly

Calls 4

get_UDPNetHandlerFunction · 0.85
setConnectionMethod · 0.80
freeMethod · 0.45
setContinuationMethod · 0.45

Tested by

no test coverage detected