Message

Message objects are created when a Host sends a classical message. The string content of the classical message is structured as a message object with some extra content. Acknowledgements in QuNetSim are also send as classical messages and therefore will appear in the Host’s classical storage.

class qunetsim.objects.message.Message(sender, content, seq_num)

Bases: object

A classical message. Contains a string message and the sender address with sequence number.

property content

The content of the message.

Returns

The content of the message.

Return type

(str)

property sender

The sender ID of the message.

Returns

The sender ID of the message.

Return type

sender (str)

property seq_num

The sequence number of the message.

Returns

The sequence number of the message.

Return type

seq_num (int)