ED247 Library  VA2.3.0
Implementation of ED247-A standard
Receive and send

Detailed Description

Receive and send data from/o network. To read/write data, see streams methods.

Functions

LIBED247_EXPORT ed247_status_t ed247_wait_frame (ed247_context_t context, ed247_stream_list_t *streams, int32_t timeout_us)
 Blocks until a frame is received and processed, and at least a stream has available data. More...
 
LIBED247_EXPORT ed247_status_t ed247_wait_during (ed247_context_t context, ed247_stream_list_t *streams, int32_t duration_us)
 Blocks until duration is elapsed. Processing all received frames. More...
 
LIBED247_EXPORT ed247_status_t ed247_send_pushed_samples (ed247_context_t context)
 Send the samples that were written and pushed. More...
 

Function Documentation

LIBED247_EXPORT ed247_status_t ed247_wait_frame ( ed247_context_t  context,
ed247_stream_list_t streams,
int32_t  timeout_us 
)

Blocks until a frame is received and processed, and at least a stream has available data.

If several frames has been received since last wait_frame/wait_during, all of them are processed.
streams, if not NULL, will be set to the list of streams with incomming data available. its lifespan is the same as the context, but you can safely call ed247_stream_list_free().

Parameters
[in]contextContext identifier
[out]streamsList of streams that received samples, can be NULL
[in]timeout_usTimeout value, in microseconds
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
ED247_STATUS_TIMEOUT
LIBED247_EXPORT ed247_status_t ed247_wait_during ( ed247_context_t  context,
ed247_stream_list_t streams,
int32_t  duration_us 
)

Blocks until duration is elapsed. Processing all received frames.

streams, if not NULL, will be set to the list of streams with incomming data available. its lifespan is the same as the context, but you can safely call ed247_stream_list_free().

Parameters
[in]contextContext identifier
[out]streamsList of streams that received samples, can be NULL
[in]duration_usDuration value, in microseconds
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_send_pushed_samples ( ed247_context_t  context)

Send the samples that were written and pushed.

See also :

This function clear send stacks.

Parameters
[in]contextContext identifier
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE