public interface PacketLogger
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Checks whether the logger is enabled.
|
void |
logPacket(byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
byte[] packetContent,
boolean sender)
Logs a incoming or outgoing packet.
|
void logPacket(byte[] sourceAddress, int sourcePort, byte[] destinationAddress, int destinationPort, byte[] packetContent, boolean sender)
sourceAddress
- the source address of the packet.sourcePort
- the source port.destinationAddress
- the destination address of the packet.destinationPort
- the destination port.packetContent
- the content of the packet.sender
- whether we are sending or not the packet.boolean isEnabled()
Copyright © 2018. All rights reserved.