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. | |
union { | |
char cmd [EVAS_STRMAX] | |
For EVAS_MSG messages. | |
evas_body_list_t body_list | |
For EVAS_BODY_LIST messages. | |
evas_body_markers_t body_markers | |
For EVAS_BODY_MARKERS messages. | |
evas_body_segments_t body_segments | |
For EVAS_BODY_SEGMENTS messages. | |
evas_body_dofs_t body_dofs | |
For EVAS_BODY_DOFS messages. | |
evas_body_markers_list_t body_markers_list | |
For EVAS_BODY_MARKERS_LIST messages. | |
evas_body_segments_list_t body_segments_list | |
For EVAS_BODY_SEGMENTS_LIST messages. | |
evas_body_dofs_list_t body_dofs_list | |
For EVAS_BODY_DOFS_LIST messages. | |
evas_unrecognized_markers_t unrecognized_markers | |
For EVAS_UNRECOGNIZED_MARKERS messages. | |
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.
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.
For EVAS_BODY_LIST messages.
Contains a list of body names.
For EVAS_BODY_MARKERS messages.
Contains a list of marker positions.
For EVAS_BODY_SEGMENTS messages.
Contains a list of segments positions.
For EVAS_BODY_DOFS messages.
Contains a list of dofs positions.
For EVAS_BODY_MARKERS_LIST messages.
Contains a list of marker names.
For EVAS_BODY_SEGMENTS_LIST messages.
Contains a list of segments names.
For EVAS_BODY_DOFS_LIST messages.
Contains a list of dofs names.
For EVAS_UNRECOGNIZED_MARKERS messages.
Contains a list of unrecognized marker positions.
char raw[65536] |
raw undecoded message. Don't use it.