message management life cycle - accelio/accelio GitHub Wiki
The following summarizes the logic behind message management life cycle One way messages are one directional messages where message is sent from sender side to receiver side. Responses are not allowed: On the sender side:
-
sending message: xio_send_msg
-
message completion: on_ow_msg_send_complete - at this stage it safe to release message resources. On the receiver side:
-
receiving message callback: on_msg
-
release message resources: xio_release_msg – should be done after message buffers are no longer needed.
-
Sending response: Not allowed
Request/response are one bidirectional messages where message is sent from sender side to receiver side. Receiver must send response to sender: On the sender side:
-
sending request: xio_send_request
-
request completion: Not available
-
receiving response callback: on_msg
-
release response resources: xio_release_response - should be done after response buffers are no longer needed. On the receiver side:
-
receiving request callback: on_msg
-
sending response: xio_send_response
-
response completion: on_msg_send_complete – at this stage it safe to release response resources.
If you need more clarification do not hesitate to contact me
Eyal