|
Udipe 1.0
Solving the riddle of high-throughput UDP
|
Generic result type. More...
Go to the source code of this file.
Data Structures | |
| union | udipe_network_payload_u |
| struct | udipe_custom_payload_s |
| struct | udipe_unordered_payload_s |
| struct | udipe_timer_repeat_payload_s |
| struct | udipe_result_s |
Typedefs | |
| typedef union udipe_network_payload_u | udipe_network_payload_t |
| typedef struct udipe_custom_payload_s | udipe_custom_payload_t |
| typedef struct udipe_future_s | udipe_future_t |
| typedef struct udipe_unordered_payload_s | udipe_unordered_payload_t |
| typedef struct udipe_timer_repeat_payload_s | udipe_timer_repeat_payload_t |
| typedef enum udipe_result_type_e | udipe_result_type_t |
| typedef struct udipe_result_s | udipe_result_t |
Enumerations | |
| enum | udipe_result_type_e { UDIPE_CONNECT = 1 , UDIPE_DISCONNECT , UDIPE_CUSTOM , UDIPE_JOIN , UDIPE_UNORDERED , UDIPE_TIMER_ONCE , UDIPE_TIMER_REPEAT , UDIPE_RESULT_INVALID = 0 , UDIPE_FAILURE_DEPENDENCY = INT_MIN , UDIPE_FAILURE_CANCELED } |
This header defines the udipe_result_t type, which can encapsulate the result of any of the libudipe commands defined in command.h, along with related lower-level definitions.
| typedef struct udipe_custom_payload_s udipe_custom_payload_t |
Result payload from custom futures created via udipe_start_custom()
User-defined futures can return data of any type that can be encoded into the inner bytes field. If your intended result type doesn't fit in there, then you will need to either heap-allocate a memory block for it or somehow have the user pass in a memory block under their control.
| typedef union udipe_network_payload_u udipe_network_payload_t |
Result payloads from network futures
This result payload pairs with a udipe_result_type_t that indicates what network command produced the result in question.
| typedef struct udipe_result_s udipe_result_t |
Generic result type
This type can encapsulate the result of any libudipe command, as well as an absence of result.
| typedef enum udipe_result_type_e udipe_result_type_t |
Result type
This enumerated type has one positive value per libudipe command. It is used to make udipe_result_t generic over all udipe command types.
In addition to one code per command, it also has sentinel values whose presence should be checked as they indicate absence of a valid result as a result of some issue. See the documentation of these sentinel values for more information.
Note that absence of a sentinel values does NOT imply that the operation was successful, only that it ran far enough to produce a result of the intended type. That result may itself be nothing but an error code. Check operation-specific result types for more information.
| typedef struct udipe_timer_repeat_payload_s udipe_timer_repeat_payload_t |
Result payload from repeating timer futures created via udipe_start_timer_repeat()
| typedef struct udipe_unordered_payload_s udipe_unordered_payload_t |
Result payload from unordered futures created via udipe_start_unordered()
| enum udipe_result_type_e |
Result type
This enumerated type has one positive value per libudipe command. It is used to make udipe_result_t generic over all udipe command types.
In addition to one code per command, it also has sentinel values whose presence should be checked as they indicate absence of a valid result as a result of some issue. See the documentation of these sentinel values for more information.
Note that absence of a sentinel values does NOT imply that the operation was successful, only that it ran far enough to produce a result of the intended type. That result may itself be nothing but an error code. Check operation-specific result types for more information.