rspamd_udp
Rspamd UDP module is available from the version 1.9.0 and represents a generic UDP asynchronous client available from the LUA code. This module is quite simple: it can either send requests to some address or it can send requests and wait for replies, potentially handling retransmits.
Functions:
Function | Description |
---|---|
rspamd_udp.sendto({params}) |
This function simply sends data to an external UDP service. |
The module rspamd_udp
defines the following functions.
rspamd_udp.sendto({params})
This function simply sends data to an external UDP service
task
: rspamd task objects (implies pool
, session
and ev_base
arguments)ev_base
: event base (if no task specified)session
: events session (no task, optional)pool
: memory pool (if no task specified)host
: IP or name of the peer (required)port
: remote port to use (if host
has no port part this is required)data
: a table of strings or rspamd_text
objects that contains data piecesretransmits
: number of retransmits if neededcallback
: optional callback if reply should be readParameters:
No parameters
Returns:
{boolean}
: true if request has been sent (additional string if it has not)Back to module description.
Back to top.