Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.55 KB

File metadata and controls

74 lines (47 loc) · 1.55 KB

Recceiver

Application for talking between IOCs (via reccaster) and ChannelFinder (via pyCFClient).

Written using twistd.

Docker

There is an example docker compose script which runs recceiver and channelfinder together.

docker compose up

Formatting and Linting

Recceiver uses ruff for formatting and linting. See website for installation instructions.

ruff check
ruff check --fix
ruff format

Server testing

Setup

 sqlite3 test.db -init recceiver.sqlite3 .exit

Run (for twistd >= 16.0.4)

PYTHONPATH=$PWD twistd --nodaemon recceiver -f demo.conf

At some point 'twistd' stopped implicitly searching the working directory.

May need to uncomment addrlist = 127.255.255.255:5049 in demo.conf when doing local testing on a computer w/ a firewall.

Older Recceiver/Twistd Versions

For recceiver <= 1.6, passing the poll reactor was required. See here for more discussion.

PYTHONPATH=$PWD twistd -r poll --nodaemon recceiver -f demo.conf

For older versions of twistd (<= 16.0.3), run

twistd --nodaemon recceiver -f demo.conf

or (see below for discussion)

twistd -r poll --nodaemon recceiver -f demo.conf

Twisted 14.0.2 seems to have a problem with the epoll() reactor which raises 'IOError: [Errno 2] No such file or directory' during startup. Try with the poll() reactor.