use of org.onosproject.lisp.msg.protocols.LispMessageReader in project onos by opennetworkinglab.
the class LispMessageDecoder method decode.
@Override
protected void decode(ChannelHandlerContext ctx, DatagramPacket msg, List<Object> list) throws Exception {
ByteBuf byteBuf = msg.content();
LispMessageReader reader = LispMessageReaderFactory.getReader(byteBuf);
LispMessage message = (LispMessage) reader.readFrom(byteBuf);
message.configSender(msg.sender());
list.add(message);
}
Aggregations