|
Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
|
Go to the source code of this file.
Macros | |
| #define | ADAPTYST_MODULE_OK 0 |
| #define | ADAPTYST_MODULE_ERR 1 |
| #define ADAPTYST_MODULE_ERR 1 |
| #define ADAPTYST_MODULE_OK 0 |
Receives data from the injection part of the module in a workflow, with no timeout.
| id | The module ID (use module_id). |
| buf | Buffer where received data should be stored. |
| buf_size | Size of the buffer in bytes. |
| n | Pointer to a variable where the number of received bytes should be stored. |
| int adaptyst_receive_data_timeout | ( | amod_t | id, |
| char * | buf, | ||
| unsigned int | buf_size, | ||
| int * | n, | ||
| long | timeout_seconds | ||
| ) |
Receives data from the injection part of the module in a workflow, with a specific timeout.
| id | The module ID (use module_id). |
| buf | Buffer where received data should be stored. |
| buf_size | Size of the buffer in bytes. |
| n | Pointer to a variable where the number of received bytes should be stored. |
| timeout_seconds | Timeout in seconds. |
| int adaptyst_receive_data_timeout_nl | ( | amod_t | id, |
| char * | buf, | ||
| unsigned int | buf_size, | ||
| int * | n, | ||
| long | timeout_seconds | ||
| ) |
Receives a string from the injection part of the module in a workflow, with no timeout.
If the sender has sent n strings using adaptyst_send_string() (where n is a positive integer), adaptyst_receive_string() or its timeout variant must be called n times to receive all of these, in the order they have been sent in.
| id | The module ID (use module_id). |
| str | Pointer to a variable where the received string should be stored. If 0 bytes are received, the variable is set to a null pointer. |
Receives a string from the injection part of the module in a workflow, with a specific timeout.
If the sender has sent n strings using adaptyst_send_string() (where n is a positive integer), adaptyst_receive_string_timeout() or its non-timeout variant must be called n times to receive all of these, in the order they have been sent in.
| id | The module ID (use module_id). |
| str | Pointer to a variable where the received string should be stored. If 0 bytes are received, the variable is set to a null pointer. |
| timeout_seconds | Timeout in seconds. |
Sends data to the injection part of the module in a workflow.
| id | The module ID (use module_id). |
| buf | Data to send. |
| n | Number of bytes to send. |
Sends a string to the injection part of the module in a workflow.
The recipient receives strings in the same order they are sent in as long as the sender uses adaptyst_send_string() and the receiver uses adaptyst_receive_string() or its timeout variant.
| id | The module ID (use module_id). |
| str | String to send. |