| 104 | } |
| 105 | |
| 106 | void |
| 107 | Http3App::on_stream_open(QUICStream &stream) |
| 108 | { |
| 109 | auto ret = this->_streams.emplace(stream.id(), stream); |
| 110 | auto &info = ret.first->second; |
| 111 | |
| 112 | switch (stream.direction()) { |
| 113 | case QUICStreamDirection::BIDIRECTIONAL: |
| 114 | info.setup_read_vio(this); |
| 115 | info.setup_write_vio(this); |
| 116 | break; |
| 117 | case QUICStreamDirection::SEND: |
| 118 | info.setup_write_vio(this); |
| 119 | break; |
| 120 | case QUICStreamDirection::RECEIVE: |
| 121 | info.setup_read_vio(this); |
| 122 | break; |
| 123 | default: |
| 124 | ink_assert(false); |
| 125 | break; |
| 126 | } |
| 127 | |
| 128 | stream.set_io_adapter(&info.adapter); |
| 129 | } |
| 130 | |
| 131 | void |
| 132 | Http3App::on_stream_close(QUICStream &stream) |
nothing calls this directly
no test coverage detected