Aleksandar Lazic
a71447539d
DOC: contrib: spoa_server Add some hints for building spoa_server
2019-07-05 16:31:50 +02:00
Daniel Corbett
c802921721
DOC/MINOR: contrib/spoa_server: Fix typo in README
...
Fix typo in README ps_pyhton.py -> ps_python.py
2019-06-11 19:27:42 +02:00
Daniel Corbett
061766859c
MINOR: contrib/spoa_server: Add random IP score
...
The example configuration uses sess.ip_score however this variable
is not referenced within the example scripts. This patch adds support
for sess.ip_score to the python + lua scripts and generates a
random number between 1 and 100.
2019-06-11 19:27:42 +02:00
Daniel Corbett
4e0fa55dcd
BUG/MEDIUM: contrib/spoa_server: Set FIN flag on agent frames
...
When communicating over SPOP the AGENT-HELLO, AGENT-DISCONNECT,
and ACK frames must have the FIN flag set.
2019-06-11 19:27:41 +02:00
Daniel Corbett
5897867ac5
MINOR: contrib/spoa_server: Upgrade SPOP to 2.0
...
Upgrade SPOP version to 2.0
2019-06-11 19:27:41 +02:00
Thierry FOURNIER
4d7bfa1cd1
MINOR/DOC: spoe-server: Add documentation
...
This is the documentation and examples.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
00a0225636
MINOR: spoa-server: Add python
...
This commit adds the Python support for the server.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
6908c95804
MINOR: spoa-server: Add Lua processing
...
Use the defined binding for registering Lua engine.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
a09df3f5d0
MINOR: spoa-server: Execute registered callbacks
...
Call the right function with the right engine for each received message.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
fbd3824868
MINOR: spoa-server: Prepare responses
...
This patch adds SPOP responses managament. It provides SPOP
encoding primitives. It also move the example function
ip_reputation to this new behavior.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
8b9a73bac0
MINOR: spoa-server: Load files
...
Declare files to be executed at the begining and execute it. The binding
between the engine and the file is done throught the extension.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
892f6647c1
MINOR: spoa-server: Allow registering message processors
...
This function register processor executed by any language for processing
an SPOP message.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
64eaa33214
MINOR: spoa-server: Allow registering external processes
...
Add struct for declaring an reistrering external processing resource.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
786e9e684b
MINOR: spoa-server: With debug mode, start only one process
...
Because debug with processes is simpler if only one process is started.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
7de6fc6ae1
MINOR: spoa-server: Replace the thread init system by processes
...
I will replace thread by processes. Note that, I keep the pthread_key
system for identifiying process in the same way that threads. Note
also that I keep commented out the original thread code because I hope
to reactivate it.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
5301ed1589
MINOR: spoe-server: rename "worker" functions
...
"worker" name is a little bit generic and it is used in many
places, so it is hard to find the expected symbol.
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
880d7e15ba
MINOR: spoa-server: Externalise debug functions
...
Make external LOG and DEBUG function. Other process can use this ones
and later these functions will be replaced by another log system
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
4aec0a4a9a
MINOR: spoa-server: move some definition from spoa_server.c to spoa_server.h
...
This will allow to add some other files to the project
2019-05-13 17:43:47 +02:00
Thierry FOURNIER
d8b5c77b55
MINOR: spoa-server: Clone the v1.7 spoa-example project
...
This is a working base.
2019-05-13 17:43:47 +02:00