| 64 | } |
| 65 | |
| 66 | void |
| 67 | Http09App::on_stream_open(QUICStream &stream) |
| 68 | { |
| 69 | auto ret = this->_streams.emplace(stream.id(), stream); |
| 70 | auto &info = ret.first->second; |
| 71 | |
| 72 | switch (stream.direction()) { |
| 73 | case QUICStreamDirection::BIDIRECTIONAL: |
| 74 | info.setup_read_vio(this); |
| 75 | info.setup_write_vio(this); |
| 76 | break; |
| 77 | case QUICStreamDirection::SEND: |
| 78 | info.setup_write_vio(this); |
| 79 | break; |
| 80 | case QUICStreamDirection::RECEIVE: |
| 81 | info.setup_read_vio(this); |
| 82 | break; |
| 83 | default: |
| 84 | ink_assert(false); |
| 85 | break; |
| 86 | } |
| 87 | |
| 88 | stream.set_io_adapter(&info.adapter); |
| 89 | } |
| 90 | |
| 91 | void |
| 92 | Http09App::on_stream_close(QUICStream & /* stream ATS_UNUSED */) |
nothing calls this directly
no test coverage detected