libtrap
1.16.1
|
Modules | |
Types of IFC | |
Macros | |
#define | TRAP_IFC_DELIMITER ',' |
#define | TRAP_IFC_PARAM_DELIMITER ':' |
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.
#define TRAP_IFC_DELIMITER ',' |