...
You'll need to import the ConcurrentCircularBuffer into the PktInHistory package. It is available here. |
Now we have to define the behavior for what to do when the module receives a PacketIn message. This is done in the receive() function.
...
Info |
---|
You can find a more in-depth REST API tutorial here if you are curious about the 'how' and 'why' behind some things you're required to do below. |
We now have a complete module implementation, but no way to get information out of it! For this we'll need to do two things. Have our module export a service then tie it into the REST API Module.
...