progress.messaging.router

This module contains aservice that routes classical messages incoming and outgoing from the device. It listens to all classical ports and routes messages to the correct inner layer. If the message is meant for another device, it is routed to the correct output port.

class progress.messaging.router.MessageRoutingService(name, node)[source]

Bases: NodeProtocol

A service that routes classical messages incoming and outgoing from the device. It listens to all classical port inputs and routes messages depending on their destination:

  • If the message is meant for another device, it is routed to the correct output port.

  • If the message is meant for the device, it is handled by the service and delivered to the correct layer of the device architecture (either Link or NET layers in the current version of ProgReSS).

Parameters:
namestr

The name of the protocol.

nodenetsquid.nodes.Node

The node that the protocol is running on.

run()[source]

References

See netsquid.protocols.Protocol.run().