public class PacketDumper extends Object implements PacketListener
Modifier and Type | Class and Description |
---|---|
static class |
PacketDumper.PacketType
High level representation of packet types (e.g.
|
Constructor and Description |
---|
PacketDumper(File logDirectory,
String fileNamePattern) |
Modifier and Type | Method and Description |
---|---|
void |
dumpPackets(PacketDumper.PacketType packetType,
boolean on) |
void |
packetReceived(FS4Channel channel,
BasicPacket packet,
ByteBuffer serializedForm) |
void |
packetSent(FS4Channel channel,
BasicPacket packet,
ByteBuffer serializedForm) |
public void packetSent(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm)
packetSent
in interface PacketListener
public void packetReceived(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm)
packetReceived
in interface PacketListener
public void dumpPackets(PacketDumper.PacketType packetType, boolean on) throws IOException
IOException
Copyright © 2018. All rights reserved.