ET System  16.4
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Attachments

These routines are used handle attachments to stations. More...

Functions

int et_wakeup_attachment (et_sys_id id, et_att_id att)
 This routine wakes up a specific attachment waiting to read events. More...
 
int et_wakeup_all (et_sys_id id, et_stat_id stat_id)
 This routine wakes up all attachments waiting to read events. More...
 
int et_attach_geteventsput (et_sys_id id, et_att_id att_id, uint64_t *events)
 This routine gets the number of events an attachment put by calling et_event_put or et_events_put. More...
 
int et_attach_geteventsget (et_sys_id id, et_att_id att_id, uint64_t *events)
 This routine gets the number of events an attachment obtained by calling et_event_get, or et_events_get. More...
 
int et_attach_geteventsdump (et_sys_id id, et_att_id att_id, uint64_t *events)
 This routine gets the number of events an attachment dumped by calling et_event_dump, or et_events_dump. More...
 
int et_attach_geteventsmake (et_sys_id id, et_att_id att_id, uint64_t *events)
 This routine gets the number of events an attachment created by calling et_event_new, et_events_new, et_event_new_group, or et_events_new_group. More...
 

Detailed Description

These routines are used handle attachments to stations.

Function Documentation

int et_attach_geteventsdump ( et_sys_id  id,
et_att_id  att_id,
uint64_t *  events 
)

This routine gets the number of events an attachment dumped by calling et_event_dump, or et_events_dump.

Parameters
idET system id.
att_idattachment id.
eventspointer to unsigned 64-bit int which gets filled with number of events dumped.
Returns
ET_OK if successful.
ET_ERROR if bad arg.
ET_ERROR_DEAD if ET system is dead,
ET_ERROR_CLOSED if ET system has been closed,
ET_ERROR_READ if network error reading,
ET_ERROR_WRITE if network error writing,

References et_system_t::attach, et_id_t::closed, et_system_t::config, et_id_t::debug, et_alive(), ET_DEBUG_ERROR, ET_ERROR, ET_ERROR_CLOSED, ET_ERROR_DEAD, et_logmsg(), et_mem_unlock(), et_memRead_lock(), ET_OK, ET_REMOTE, etr_attach_geteventsdump(), et_attach::events_dump, et_id_t::locality, et_sys_config_t::nattachments, and et_id_t::sys.

int et_attach_geteventsget ( et_sys_id  id,
et_att_id  att_id,
uint64_t *  events 
)

This routine gets the number of events an attachment obtained by calling et_event_get, or et_events_get.

Parameters
idET system id.
att_idattachment id.
eventspointer to unsigned 64-bit int which gets filled with number of events gotten.
Returns
ET_OK if successful.
ET_ERROR if bad arg.
ET_ERROR_DEAD if ET system is dead,
ET_ERROR_CLOSED if ET system has been closed,
ET_ERROR_READ if network error reading,
ET_ERROR_WRITE if network error writing,

References et_system_t::attach, et_id_t::closed, et_system_t::config, et_id_t::debug, et_alive(), ET_DEBUG_ERROR, ET_ERROR, ET_ERROR_CLOSED, ET_ERROR_DEAD, et_logmsg(), et_mem_unlock(), et_memRead_lock(), ET_OK, ET_REMOTE, etr_attach_geteventsget(), et_attach::events_get, et_id_t::locality, et_sys_config_t::nattachments, and et_id_t::sys.

int et_attach_geteventsmake ( et_sys_id  id,
et_att_id  att_id,
uint64_t *  events 
)

This routine gets the number of events an attachment created by calling et_event_new, et_events_new, et_event_new_group, or et_events_new_group.

Parameters
idET system id.
att_idattachment id.
eventspointer to unsigned 64-bit int which gets filled with number of events made.
Returns
ET_OK if successful.
ET_ERROR if bad arg.
ET_ERROR_DEAD if ET system is dead,
ET_ERROR_CLOSED if ET system has been closed,
ET_ERROR_READ if network error reading,
ET_ERROR_WRITE if network error writing,

References et_system_t::attach, et_id_t::closed, et_system_t::config, et_id_t::debug, et_alive(), ET_DEBUG_ERROR, ET_ERROR, ET_ERROR_CLOSED, ET_ERROR_DEAD, et_logmsg(), et_mem_unlock(), et_memRead_lock(), ET_OK, ET_REMOTE, etr_attach_geteventsmake(), et_attach::events_make, et_id_t::locality, et_sys_config_t::nattachments, and et_id_t::sys.

int et_attach_geteventsput ( et_sys_id  id,
et_att_id  att_id,
uint64_t *  events 
)

This routine gets the number of events an attachment put by calling et_event_put or et_events_put.

Parameters
idET system id.
att_idattachment id.
eventspointer to unsigned 64-bit int which gets filled with number of events put.
Returns
ET_OK if successful.
ET_ERROR if bad arg.
ET_ERROR_DEAD if ET system is dead,
ET_ERROR_CLOSED if ET system has been closed,
ET_ERROR_READ if network error reading,
ET_ERROR_WRITE if network error writing,

References et_system_t::attach, et_id_t::closed, et_system_t::config, et_id_t::debug, et_alive(), ET_DEBUG_ERROR, ET_ERROR, ET_ERROR_CLOSED, ET_ERROR_DEAD, et_logmsg(), et_mem_unlock(), et_memRead_lock(), ET_OK, ET_REMOTE, etr_attach_geteventsput(), et_attach::events_put, et_id_t::locality, et_sys_config_t::nattachments, and et_id_t::sys.