102103104105106107108
write(new PortMessage(dhtPort)); } @Override public void keepAlive() { write(new KeepAliveMessage()); }
3435363738394041424344
message.read(buffer); return message; } else { if(buffer.readableBytes() == 0) return new KeepAliveMessage(); final byte opcode = buffer.readByte(); final PeerWireMessage message; switch (opcode) { case CancelMessage.MESSAGE_ID: