Method
readPingFrame
(int flags, ByteBuffer buffer)
Source from the content-addressed store, hash-verified
| 389 | |
| 390 | |
| 391 | protected void readPingFrame(int flags, ByteBuffer buffer) throws IOException { |
| 392 | // Read the payload |
| 393 | byte[] payload = new byte[8]; |
| 394 | if (buffer == null) { |
| 395 | input.fill(true, payload); |
| 396 | } else { |
| 397 | buffer.get(payload); |
| 398 | } |
| 399 | output.pingReceive(payload, Flags.isAck(flags)); |
| 400 | } |
| 401 | |
| 402 | |
| 403 | protected void readGoawayFrame(int payloadSize, ByteBuffer buffer) throws IOException { |
Tested by
no test coverage detected