evart-client
2.2
|
Messages streamed by the server. More...
#include <evart-client.h>
Data Fields | |
uint32_t | len |
The length of the message in bytes. | |
evas_msgtype_t | type |
The type of the message. More... | |
union { | |
char cmd [EVAS_STRMAX] | |
For EVAS_MSG messages. More... | |
evas_body_list_t body_list | |
For EVAS_BODY_LIST messages. More... | |
evas_body_markers_t body_markers | |
For EVAS_BODY_MARKERS messages. More... | |
evas_body_segments_t body_segments | |
For EVAS_BODY_SEGMENTS messages. More... | |
evas_body_dofs_t body_dofs | |
For EVAS_BODY_DOFS messages. More... | |
evas_body_markers_list_t body_markers_list | |
For EVAS_BODY_MARKERS_LIST messages. More... | |
evas_body_segments_list_t body_segments_list | |
For EVAS_BODY_SEGMENTS_LIST messages. More... | |
evas_body_dofs_list_t body_dofs_list | |
For EVAS_BODY_DOFS_LIST messages. More... | |
evas_unrecognized_markers_t unrecognized_markers | |
For EVAS_UNRECOGNIZED_MARKERS messages. More... | |
char raw [65536] | |
}; | |
Messages streamed by the server.
This structure is the basis of all data streamed by the evart-server. Every function receiving data from the server will be passed such messages (see evas_sethandler(), evas_recv()).
The structure contains several fields, depending on the actual type of the message. Use only the field correspondig to the type member, as other fields will typically contain garbage.
evas_msgtype_t type |
The type of the message.
Use this field to determine validity of other members.
char cmd[EVAS_STRMAX] |
For EVAS_MSG messages.
Contains raw ASCII text from the server. This type of message is normally not used.
evas_body_list_t body_list |
For EVAS_BODY_LIST messages.
Contains a list of body names.
evas_body_markers_t body_markers |
For EVAS_BODY_MARKERS messages.
Contains a list of marker positions.
evas_body_segments_t body_segments |
For EVAS_BODY_SEGMENTS messages.
Contains a list of segments positions.
evas_body_dofs_t body_dofs |
For EVAS_BODY_DOFS messages.
Contains a list of dofs positions.
evas_body_markers_list_t body_markers_list |
For EVAS_BODY_MARKERS_LIST messages.
Contains a list of marker names.
evas_body_segments_list_t body_segments_list |
For EVAS_BODY_SEGMENTS_LIST messages.
Contains a list of segments names.
evas_body_dofs_list_t body_dofs_list |
For EVAS_BODY_DOFS_LIST messages.
Contains a list of dofs names.
evas_unrecognized_markers_t unrecognized_markers |
For EVAS_UNRECOGNIZED_MARKERS messages.
Contains a list of unrecognized marker positions.
char raw[65536] |
raw undecoded message. Don't use it.