evart-client  2.2
Data Fields
evas_msg_t Struct Reference

Messages streamed by the server. More...

#include <evart-client.h>

+ Collaboration diagram for evas_msg_t:

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]
 
}; 
 

Detailed Description

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.

Field Documentation

◆ type

The type of the message.

Use this field to determine validity of other members.

◆ cmd

char cmd[EVAS_STRMAX]

For EVAS_MSG messages.

Contains raw ASCII text from the server. This type of message is normally not used.

◆ body_list

evas_body_list_t body_list

For EVAS_BODY_LIST messages.

Contains a list of body names.

◆ body_markers

evas_body_markers_t body_markers

For EVAS_BODY_MARKERS messages.

Contains a list of marker positions.

◆ body_segments

evas_body_segments_t body_segments

For EVAS_BODY_SEGMENTS messages.

Contains a list of segments positions.

◆ body_dofs

evas_body_dofs_t body_dofs

For EVAS_BODY_DOFS messages.

Contains a list of dofs positions.

◆ body_markers_list

evas_body_markers_list_t body_markers_list

For EVAS_BODY_MARKERS_LIST messages.

Contains a list of marker names.

◆ body_segments_list

evas_body_segments_list_t body_segments_list

For EVAS_BODY_SEGMENTS_LIST messages.

Contains a list of segments names.

◆ body_dofs_list

evas_body_dofs_list_t body_dofs_list

For EVAS_BODY_DOFS_LIST messages.

Contains a list of dofs names.

◆ unrecognized_markers

evas_unrecognized_markers_t unrecognized_markers

For EVAS_UNRECOGNIZED_MARKERS messages.

Contains a list of unrecognized marker positions.

◆ raw

char raw[65536]

raw undecoded message. Don't use it.