libtrap  1.16.1
Macros
Collaboration diagram for Error codes:

Macros

#define TRAP_E_OK   0
 Success, no error. More...
 
#define TRAP_E_TIMEOUT   1
 Read or write operation timeout. More...
 
#define TRAP_E_INITIALIZED   10
 TRAP library already initilized. More...
 
#define TRAP_E_BADPARAMS   11
 Bad parameters passed to interface initializer. More...
 
#define TRAP_E_BAD_IFC_INDEX   12
 Interface index out of range. More...
 
#define TRAP_E_BAD_FPARAMS   13
 Bad parameters of function. More...
 
#define TRAP_E_IO_ERROR   14
 IO Error. More...
 
#define TRAP_E_TERMINATED   15
 Interface was terminated during reading/writing. More...
 
#define TRAP_E_NOT_SELECTED   16
 Interface was not selected reading/writing. More...
 
#define TRAP_E_BAD_CERT   17
 Wrong certificate given to TLS interface. More...
 
#define TRAP_E_HELP   20
 Returned by parse_parameters when help is requested. More...
 
#define TRAP_E_FIELDS_MISMATCH   21
 Returned when receiver fields are not subset of sender fields. More...
 
#define TRAP_E_FIELDS_SUBSET   22
 Returned when receivers fields are subset of senders fields and both sets are not identical. More...
 
#define TRAP_E_FORMAT_CHANGED   23
 Returned by trap_recv when format or format spec of the receivers interface has been changed. More...
 
#define TRAP_E_FORMAT_MISMATCH   24
 Returned by trap_recv when data format or data specifier of the output and input interfaces doesn't match. More...
 
#define TRAP_E_NEGOTIATION_FAILED   25
 Returned by trap_recv when negotiation of the output and input interfaces failed. More...
 
#define TRAP_E_NOT_INITIALIZED   254
 TRAP library not initilized. More...
 
#define TRAP_E_MEMORY   255
 Memory allocation error. More...
 

Detailed Description

Macro Definition Documentation

◆ TRAP_E_BAD_CERT

#define TRAP_E_BAD_CERT   17

Wrong certificate given to TLS interface.

Definition at line 96 of file trap.h.

◆ TRAP_E_BAD_FPARAMS

#define TRAP_E_BAD_FPARAMS   13

Bad parameters of function.

Definition at line 92 of file trap.h.

◆ TRAP_E_BAD_IFC_INDEX

#define TRAP_E_BAD_IFC_INDEX   12

Interface index out of range.

Definition at line 91 of file trap.h.

◆ TRAP_E_BADPARAMS

#define TRAP_E_BADPARAMS   11

Bad parameters passed to interface initializer.

Definition at line 90 of file trap.h.

◆ TRAP_E_FIELDS_MISMATCH

#define TRAP_E_FIELDS_MISMATCH   21

Returned when receiver fields are not subset of sender fields.

Definition at line 98 of file trap.h.

◆ TRAP_E_FIELDS_SUBSET

#define TRAP_E_FIELDS_SUBSET   22

Returned when receivers fields are subset of senders fields and both sets are not identical.

Definition at line 99 of file trap.h.

◆ TRAP_E_FORMAT_CHANGED

#define TRAP_E_FORMAT_CHANGED   23

Returned by trap_recv when format or format spec of the receivers interface has been changed.

Definition at line 100 of file trap.h.

◆ TRAP_E_FORMAT_MISMATCH

#define TRAP_E_FORMAT_MISMATCH   24

Returned by trap_recv when data format or data specifier of the output and input interfaces doesn't match.

Definition at line 101 of file trap.h.

◆ TRAP_E_HELP

#define TRAP_E_HELP   20

Returned by parse_parameters when help is requested.

Definition at line 97 of file trap.h.

◆ TRAP_E_INITIALIZED

#define TRAP_E_INITIALIZED   10

TRAP library already initilized.

Definition at line 89 of file trap.h.

◆ TRAP_E_IO_ERROR

#define TRAP_E_IO_ERROR   14

IO Error.

Definition at line 93 of file trap.h.

◆ TRAP_E_MEMORY

#define TRAP_E_MEMORY   255

Memory allocation error.

Definition at line 104 of file trap.h.

◆ TRAP_E_NEGOTIATION_FAILED

#define TRAP_E_NEGOTIATION_FAILED   25

Returned by trap_recv when negotiation of the output and input interfaces failed.

Definition at line 102 of file trap.h.

◆ TRAP_E_NOT_INITIALIZED

#define TRAP_E_NOT_INITIALIZED   254

TRAP library not initilized.

Definition at line 103 of file trap.h.

◆ TRAP_E_NOT_SELECTED

#define TRAP_E_NOT_SELECTED   16

Interface was not selected reading/writing.

Definition at line 95 of file trap.h.

◆ TRAP_E_OK

#define TRAP_E_OK   0

Success, no error.

Definition at line 87 of file trap.h.

◆ TRAP_E_TERMINATED

#define TRAP_E_TERMINATED   15

Interface was terminated during reading/writing.

Definition at line 94 of file trap.h.

◆ TRAP_E_TIMEOUT

#define TRAP_E_TIMEOUT   1

Read or write operation timeout.

Definition at line 88 of file trap.h.