MaimMim Man in the middle minetest interceptor
- prototype - between client and server, allow to capture all exchanges and potentially change them - created to capture server maps in laby - first test get only MapBlock, support version serialization version 28 - prepartion for 29 with zstd but untested. # Conflicts: # fetch_dependencies.sh
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package org.artisanlogiciel.games.minetest.net;
|
||||
|
||||
import org.artisanlogiciel.games.minetest.core.PacketException;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public class ReliablePacketBuffer {
|
||||
|
||||
List<BufferedPacket> m_list = new LinkedList<>();
|
||||
|
||||
void insert(BufferedPacket packet, int nextExpected)
|
||||
throws PacketException
|
||||
{
|
||||
//
|
||||
int seqNum = packet.getSeqNum();
|
||||
m_list.add(packet);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user