int msu_num_states(struct local_msu *msu)
int msu_free_all_state(struct local_msu *msu)
Frees all state structures associated with the given MSU.
The structure that represents an MSU located on the local machine.
int msu_free_state(struct local_msu *msu, struct msu_msg_key *key)
Frees the state assocated with the given MSU and key.
void * msu_get_state(struct local_msu *msu, struct msu_msg_key *key, size_t *size)
Gets the state allocated with the given key.
void * msu_init_state(struct local_msu *msu, struct msu_msg_key *key, size_t size)
Initializes a new MSU state of the given size with the provided key.
Used to uniquely identify the source of a message, used in state storage as well as routing...