Package: com_pkg

Signals

Name Type Description
net network_t

Functions

Description
Destroy actor. Mailboxes are deallocated and dependent subscriptions are
removed. Returns null_actor.

Description
Reset communication system. All actors are destroyed.

Description
Resize actor mailbox. Reducing size below the number of messages in the
mailbox in runtime error

Description

Primary send and receive related subprograms

All timeouts will result in a runtime error unless otherwise noted.

Send message to receiver. Blocking if reciever or any subscriber inbox is
full.

Description
Send message to an array of receivers. Blocking if any reciever or any subscriber inbox is
full.

Description
Receive message sent to receiver. Returns oldest message or the first
incoming if the inbox is empty. msg is initially deleted.

Description
Receive message sent to any of the receivers. Returns oldest message or the first
incoming if the inboxes are empty. Receiver inboxes are emptied from left
to right. msg is initially deleted.

Description
Reply to request_msg with reply_msg. request_msg may be anonymous. Blocking if reciever
or any subscriber inbox is full.

Description
Receive a reply_msg to request_msg. request_msg may be anonymous. reply_msg is initially deleted.

Description
Publish a message from sender to all its subscribers. Blocking if reciever or any subscriber inbox is
full.

Description

Secondary send and receive related subprograms

All timeouts will result in a runtime error unless otherwise noted.

Positive or negative acknowledge of a request_msg. Same as a reply with a
boolean reply message.

Description
Receive positive or negative acknowledge for a request_msg. request_msg
may be anonymous. reply_msg is initially deleted.

Description
This request is the same as send of request_msg to receiver followed by a
receive_reply of a reply_msg

Description
This request is the same as send of request_msg to receiver followed by a
receive_reply of a positive or negative acknowledge.

Description

Low-level subprograms primarily used for handling timeout wihout error

Wait for message sent to receiver. status = ok if message is
received before the timeout, status = timeout otherwise.

Description
Wait for message sent to any of the listed receivers. status = ok
if message is received before the timeout, status = timeout otherwise.

Description
Wait for reply to request_msg. status = ok
if message is received before the timeout, status = timeout otherwise.

Description
Get oldest message from receiver inbox. Runtime error if inbox is empty.

Description
Get reply message to request_msg. Runtime error if reply message isn't available.

Description

Subscriptions

Make subscriber subscribe on the specified publisher and traffic type. For
a description of the traffic types see com_types.vhd

Description
Remove subscription on the given publisher and traffic type.

Description
Deallocate memory allocated to a mailbox state variable

Description
Deallocate memory allocated to a actor state variable

Description
Deallocate memory allocated to a messenger state variable

Description

Misc

Allow deprecated APIs

Description
Allow timeout in deprecated functionality. If not allowed timeouts will
cause a runtime error.