A data exchange communication queue to send and receive bytes with multiple remote peers.
More...
#include <queues.h>
|
| gate_result_t | set_callback (gate_dataqueue_status_t callback_func, void *callback_data) |
| | Sets a callback function that is called on each connection activity.
|
| gate_result_t | open (gate_string_t const *address, gate_uint32_t flags, void *user_param, gate_channel_id_t *channel_id) |
| | Opens a new connection to a remote peer for data communication as a communication channel.
|
| gate_result_t | close (gate_channel_id_t channel_id) |
| | Closes a communication channel.
|
| gate_result_t | begin_read (gate_channel_id_t channel_id, gate_size_t size, void *user_param) |
| | Starts a new read attempt on a channel.
|
| gate_result_t | begin_write (gate_channel_id_t channel_id, char const *buffer, gate_size_t buffer_size, void *user_param) |
| | Starts a new write attempt on a channel.
|
|
gate_result_t | start () |
| | Starts an operation.
|
|
gate_result_t | stop () |
| | Stops a running operation.
|
|
gate_enumint_t | get_status () |
| | Retrieves a status indicator about the started or stopped operation.
|
| char const * | get_interface_name () |
| | Returns on object's interface path name.
|
|
void | release () |
| | Decrease object's reference counter, releases the object when count reaches zero.
|
| int | retain () |
| | Increase object's reference counter.
|
A data exchange communication queue to send and receive bytes with multiple remote peers.
◆ set_callback()
| gate_result_t set_callback |
( |
gate_dataqueue_status_t | callback_func, |
|
|
void * | callback_data ) |
Sets a callback function that is called on each connection activity.
- Parameters
-
| [in] | callback_func | function pointer to callback method that receives activity notifications |
| [in] | callback_data | unique address to be interpreted by implementation |
- Returns
- GATE_RESULT_* result code
◆ open()
Opens a new connection to a remote peer for data communication as a communication channel.
- Parameters
-
| [in] | address | address of remote peer to be connected |
| [in] | flags | connection related configuration flags |
| [in] | user_param | per-connection user data to be returned in callback |
| [out] | channel_id | pointer to channel_id, to be filled with ID to opened connected |
- Returns
- GATE_RESULT_* result code
◆ close()
Closes a communication channel.
- Parameters
-
| [in] | channel_id | communication channel ID to be closed |
- Returns
- GATE_RESULT_* result code
◆ begin_read()
Starts a new read attempt on a channel.
- Parameters
-
| [in] | channel_id | communication channel ID to be accessed |
| [in] | size | maximum amount of bytes to be read |
| [in] | user_param | per-request user parameter to be returned in callback |
- Returns
- GATE_RESULT_* result code
◆ begin_write()
| gate_result_t begin_write |
( |
gate_channel_id_t | channel_id, |
|
|
char const * | buffer, |
|
|
gate_size_t | buffer_size, |
|
|
void * | user_param ) |
Starts a new write attempt on a channel.
- Parameters
-
| [in] | channel_id | communication channel ID to be accessed |
| [in] | buffer | maximum amount of bytes to be read |
| [in] | buffer_size | maximum amount of bytes to be read |
| [in] | user_param | per-request user parameter to be returned in callback |
- Returns
- GATE_RESULT_* result code
The documentation for this interface was generated from the following file: