|
dxFeed Graal Native SDK 3.9.0
|
#include <dxfg_events.h>
Data Fields | |
| dxfg_event_type_t | event_type |
| const char * | event_symbol |
| int64_t | event_time |
| void * | attachment |
The attachment (the same for dxfg_configuration_t) is a UTF-8 null-terminated string (const char *, declared as void *) or NULL when there is no attachment:
So a non-string attachment loses its type when it passes through C: if the event is published back (or forwarded to another endpoint), the Java receivers get the string instead of the original object.
The C API does not support arbitrary Java attachments: C can neither create nor read them. For a string payload prefer dxfg_text_message_t and dxfg_text_configuration_t (TextMessage, TextConfiguration): their text is a plain string that passes both ways without loss.
Memory:
| void* dxfg_message_t::attachment |
The attachment: a UTF-8 null-terminated string (const char *) or NULL, see dxfg_message_t.
| const char* dxfg_message_t::event_symbol |
| int64_t dxfg_message_t::event_time |
| dxfg_event_type_t dxfg_message_t::event_type |