Skip to main content
. 2022 Oct 21;22(20):8078. doi: 10.3390/s22208078
Algorithm 1 The proposed push-based critical data forwarding algorithm at a producer.
  • 1:

    Possible events: (Startup, interest i, consumer c, critical content b)

  • 2:

    Case Event:

  • 3:

    if Producer == New then

  • 4:

         advertise each non-critical content Object O

  • 5:

         if non-critical content i then

  • 6:

              send i to consumer c

  • 7:

              if critical content r then

  • 8:

                   construct a critical data packet b

  • 9:

                   send critical content b towards CH

  • 10:

             end if

  • 11:

        end if

  • 12:

    end if