-
- All Implemented Interfaces:
public interface PacketLoggerThe interface which interested implementers will use in order to track and log packets send and received by this stack.
-
-
Method Summary
Modifier and Type Method Description abstract voidlogPacket(Array<byte> sourceAddress, int sourcePort, Array<byte> destinationAddress, int destinationPort, Array<byte> packetContent, boolean sender)Logs a incoming or outgoing packet. abstract booleanisEnabled()Checks whether the logger is enabled. -
-
Method Detail
-
logPacket
abstract void logPacket(Array<byte> sourceAddress, int sourcePort, Array<byte> destinationAddress, int destinationPort, Array<byte> packetContent, boolean sender)
Logs a incoming or outgoing packet.
- Parameters:
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.
-
isEnabled
abstract boolean isEnabled()
Checks whether the logger is enabled.
-
-
-
-