Package 

Interface PacketLogger

  • All Implemented Interfaces:

    
    public interface PacketLogger
    
                        

    The interface which interested implementers will use in order to track and log packets send and received by this stack.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void logPacket(Array<byte> sourceAddress, int sourcePort, Array<byte> destinationAddress, int destinationPort, Array<byte> packetContent, boolean sender) Logs a incoming or outgoing packet.
      abstract boolean isEnabled() Checks whether the logger is enabled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.