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,45 @@
|
||||
package org.artisanlogiciel.games.minetest.net;
|
||||
|
||||
public class ConnectionEvent {
|
||||
|
||||
ConnectionEventType m_event_type;
|
||||
int m_peer_id;
|
||||
byte[] m_data;
|
||||
boolean m_timeout;
|
||||
|
||||
|
||||
ConnectionEvent(ConnectionEventType eventType)
|
||||
{
|
||||
m_event_type = eventType;
|
||||
}
|
||||
|
||||
String describe()
|
||||
{
|
||||
return m_event_type.toString();
|
||||
}
|
||||
|
||||
ConnectionEventPtr create(ConnectionEventType type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
ConnectionEventPtr dataReceived(int peer_id, byte[] data)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
ConnectionEventPtr peerAdded(int peer_id, Address address)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
ConnectionEventPtr peerRemoved(int peer_id, boolean is_timeout, Address address)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
ConnectionEventPtr bindFailed()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user