Skip to content Skip to sidebar Skip to footer

Get Ip Packet Data From Bytebuffer

I'm trying to get the source and destination address from a packet. This is how i am reading the packet: private void debugPacket(ByteBuffer packet) { int buffer = packet.get()

Solution 1:

I cant believe i didn't catch this earlier. I forgot to call packet.clear() after debugPacket(packet).


Post a Comment for "Get Ip Packet Data From Bytebuffer"