Class DETECT_LOOPBACKS


  • public class DETECT_LOOPBACKS
    extends Protocol
    Detects unicast loopbacks: messages where dest == local address
    Since:
    5.1.6
    Author:
    Bela Ban
    • Field Detail

      • print_to_stdout

        protected boolean print_to_stdout
      • local_addr

        protected Address local_addr
      • count

        protected final java.util.concurrent.atomic.AtomicInteger count
    • Constructor Detail

      • DETECT_LOOPBACKS

        public DETECT_LOOPBACKS()
    • Method Detail

      • down

        public java.lang.Object down​(Event evt)
        Description copied from class: Protocol
        An event is to be sent down the stack. A protocol may want to examine its type and perform some action on it, depending on the event's type. If the event is a message MSG, then the protocol may need to add a header to it (or do nothing at all) before sending it down the stack using down_prot.down().
        Overrides:
        down in class Protocol
      • down

        public java.lang.Object down​(Message msg)
        Description copied from class: Protocol
        A message is sent down the stack. Protocols may examine the message and do something (e.g. add a header) with it before passing it down.
        Overrides:
        down in class Protocol