Aucune description

Andrej Studen 50ff77755c Adding README.md il y a 2 ans
serviceScripts 8b0b7f2f18 Correcting script error il y a 3 ans
README.md 50ff77755c Adding README.md il y a 2 ans
requirements.txt 2fcd1f749d Add 'requirements.txt' il y a 2 ans
send.py 52421a18ee Adding support for message to including calling server il y a 3 ans
websocketServer.py 19bd704ea0 Adding ip argument to server to specify IP, adding TEST mode to test server il y a 3 ans

README.md

Installation

After cloning, virtual environment with python3 needs to be created.

Create virtual environment with python3 and requirements file:

virtualenv ~/venv/socket -p python3
source ~/venv/socket/bin/activate
pip install -r requirements.txt

Update serviceScripts/env.sh to point to correct IPs. For a server, IP is available as

ip add show

Select the ip with interface that has the highest probability that it points to a physical interface. In most systems this is eth0.

Run open_port.sh to modify firewall to accept connection on the designated port.

Run start.sh to start the server. Look for output/log at $HOME/logs/socketServer.log.