Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.31 KB

File metadata and controls

71 lines (45 loc) · 1.31 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.3)

twistd -n recceiver -f demo.conf

or (see below for discussion)

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

Run (for twistd >= 16.0.4)

PYTHONPATH=$PWD twistd -r poll -n 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.

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.

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