instrumentation_tool osa_component
API Reference Manual  /  7 Simulator-to-Simulator Interfaces  / 

leader_message

Description
This interface is implemented by the leader, and is used from a follower agent to send data to the follower.

The send method sends a deterministic message to the follower to be delivered at time. If several messages will be delivered at same time, an increasing skey determines the sort order.

The send_async method sends a non-deterministic (asynchronous) message to the follower to be delivered as soon as possible.

SIM_INTERFACE(leader_message) {
        void (*send)(conf_object_t *obj,
                     follower_time_t time, uint64 skey, bytes_t msg);
        void (*send_async)(conf_object_t *obj, bytes_t msg);
};
#define LEADER_MESSAGE_INTERFACE "leader_message"

Execution Context
Cell Context for all methods.

instrumentation_tool osa_component