#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
| typedef void(* | yami_raw_message_function )(const char target[], const uint8_t header[], size_t header_size, const uint8_t body[], size_t body_size) |
| |
| typedef void(* | yami_message_function )(const char target[], enum yami_message_type message_type, const char object_name[], const char message_name[], const char exception_msg[], int64_t message_id, const uint8_t body[], size_t body_size) |
| |
| typedef void(* | yami_io_error_function )(int32_t error_code, const char description[]) |
| |
| typedef void(* | yami_connection_event_function )(enum yami_connection_event event, const char target[]) |
| |
Type of function callback for reporting connection events.
- Parameters
-
| event | kind of connection event (open, closed) |
| target | remote endpoint name |
| typedef void(* yami_io_error_function)(int32_t error_code, const char description[]) |
Type of function callback for I/O error logging.
- Parameters
-
| error_code | copy of errno or other error indicator as set by the system or 0 if exact error number cannot be obtained |
| description | error message |
| typedef void(* yami_message_function)(const char target[], enum yami_message_type message_type, const char object_name[], const char message_name[], const char exception_msg[], int64_t message_id, const uint8_t body[], size_t body_size) |
Type of function callback for high-level message delivery.
- Parameters
-
| target | endpoint name of the message sender |
| message_type | type of message notification |
| object_name | name of logical message destination (valid only for yami_incoming_message) |
| message_name | name of message (valid only for yami_incoming_message) |
| exception_msg | description of problem at the receiver side (valid only for yami_incoming_message) |
| message_id | high-level message identifier |
| body | body buffer (valid only for yami_incoming_message and for yami_message_reply) |
| body_size | size of the body buffer (valid only for yami_incoming_message and for yami_message_reply) |
| typedef void(* yami_raw_message_function)(const char target[], const uint8_t header[], size_t header_size, const uint8_t body[], size_t body_size) |
Type of function callback for raw message delivery.
- Parameters
-
| target | endpoint name of the message sender |
| header | header buffer |
| header_size | size of the header buffer |
| body | body buffer |
| body_size | size of the body buffer |
Type of connection event notification
| Enumerator |
|---|
| yami_new_outgoing_connection |
|
| yami_new_incoming_connection |
|
| yami_connection_closed |
|
Type of message for high-level message delivery.
| Enumerator |
|---|
| yami_incoming_message |
|
| yami_message_reply |
|
| yami_message_rejected |
|
| yami_message_abandoned |
|