| 356 | } |
| 357 | |
| 358 | bool |
| 359 | http2_parse_goaway(IOVec iov, Http2Goaway &goaway) |
| 360 | { |
| 361 | byte_pointer ptr(iov.iov_base); |
| 362 | byte_addressable_value<uint32_t> sid; |
| 363 | byte_addressable_value<uint32_t> ec; |
| 364 | |
| 365 | memcpy_and_advance(sid.bytes, ptr); |
| 366 | memcpy_and_advance(ec.bytes, ptr); |
| 367 | |
| 368 | goaway.last_streamid = ntohl(sid.value); |
| 369 | goaway.error_code = static_cast<Http2ErrorCode>(ntohl(ec.value)); |
| 370 | return true; |
| 371 | } |
| 372 | |
| 373 | bool |
| 374 | http2_parse_window_update(IOVec iov, uint32_t &size) |
no test coverage detected