libtrap  1.16.1
Macros
TRAP Timeout
Collaboration diagram for TRAP Timeout:

Macros

#define TRAP_NO_WAIT   0
 
#define TRAP_WAIT   -1
 
#define TRAP_HALFWAIT   -2
 
#define TRAP_TIMEOUT_STR(t)   (t==TRAP_WAIT?"TRAP_WAIT":(t==TRAP_NO_WAIT?"TRAP_NO_WAIT":(t==TRAP_HALFWAIT?"TRAP_HALFWAIT":"")))
 
#define TRAP_NO_AUTO_FLUSH   (-1l)
 value to disable autoflushing on output interface More...
 

Detailed Description

TRAP IFC works with timeout to decide wether it should block or just wait for some time. The timeout is usually in microseconds. This section lists some special timeout values.

Macro Definition Documentation

◆ TRAP_HALFWAIT

#define TRAP_HALFWAIT   -2

Blocking mode, do not wait for client's connection, clients do not try to reconnect, there is no recovering of clients during get_data/send_data in this mode. For input ifc it is the same as TRAP_NO_WAIT.

Definition at line 130 of file trap.h.

◆ TRAP_NO_AUTO_FLUSH

#define TRAP_NO_AUTO_FLUSH   (-1l)

value to disable autoflushing on output interface

Definition at line 134 of file trap.h.

◆ TRAP_NO_WAIT

#define TRAP_NO_WAIT   0

Non-Blocking mode, do not wait ever.

Definition at line 119 of file trap.h.

◆ TRAP_TIMEOUT_STR

#define TRAP_TIMEOUT_STR (   t)    (t==TRAP_WAIT?"TRAP_WAIT":(t==TRAP_NO_WAIT?"TRAP_NO_WAIT":(t==TRAP_HALFWAIT?"TRAP_HALFWAIT":"")))

Definition at line 132 of file trap.h.

◆ TRAP_WAIT

#define TRAP_WAIT   -1

Blocking mode, wait for client's connection, for message transport to/from internal system buffer.

Definition at line 124 of file trap.h.