Udipe 1.0
Solving the riddle of high-throughput UDP
Loading...
Searching...
No Matches
Data Fields
udipe_result_s Struct Reference

#include <result.h>

Data Fields

union { 
 
   udipe_network_payload_t   network 
 
   udipe_custom_payload_t   custom 
 
   udipe_unordered_payload_t   unordered 
 
   udipe_timer_repeat_payload_t   timer_repeat 
 
payload 
 
udipe_result_type_t type
 

Detailed Description

Generic result type

This type can encapsulate the result of any libudipe command, as well as an absence of result.

Field Documentation

◆ [union]

union { ... } udipe_result_s::payload

Result of the command, if any

type can be used to check whether there is a result, and if so what kind of payload it is.

◆ type

udipe_result_type_t udipe_result_s::type

Command that returned this result, or sentinel value that indicates that this result is invalid and its payload shouldn't be processed.

Even when one is using infaillible wait commands, this field can be useful for debug assertions that a result is associated with the expected command type. It also enables having generic utilities that can handle all types of results.


The documentation for this struct was generated from the following file: