| 117 | } |
| 118 | |
| 119 | Action * |
| 120 | UDPConnection::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 | |
| 141 | void |
| 142 | UDPConnection::Release() |
nothing calls this directly
no test coverage detected