libtrap  1.16.1
Modules | Macros
Specifier of TRAP interfaces
Collaboration diagram for Specifier of TRAP interfaces:

Modules

 Types of IFC
 

Macros

#define TRAP_IFC_DELIMITER   ','
 
#define TRAP_IFC_PARAM_DELIMITER   ':'
 

Detailed Description

The format of -i parameter of modules sets up TRAP interfaces. TRAP_IFC_DELIMITER divides specifier into interfaces. TRAP_IFC_PARAM_DELIMITER divides parameters of one interface.

Each TRAP interface must have the type (Types of IFC) as the first parameter. The following parameters are passed to the interface and they are interface-dependent.

The format example, let's assume the module has 1 input IFC and 1 output IFC:

-i t:localhost:7600,u:my_socket

This sets the input IFC to TCP type and it will connect to localhost, port 7600. The output IFC will listen on UNIX socket with identifier my_socket.

Macro Definition Documentation

◆ TRAP_IFC_DELIMITER

#define TRAP_IFC_DELIMITER   ','

Delimiter of TRAP interfaces in IFC specifier

Definition at line 160 of file trap.h.

◆ TRAP_IFC_PARAM_DELIMITER

#define TRAP_IFC_PARAM_DELIMITER   ':'

Delimiter of TRAP interface's parameters in IFC specifier

Definition at line 165 of file trap.h.