Client feature
Parity-bit append
The client can generate the extra bit needed to force an even number of ones.
TCP experiment
A parity-checking workflow where the client can append a parity bit before sending a bitstring and the server validates whether the received sequence satisfies even parity.
Client feature
The client can generate the extra bit needed to force an even number of ones.
Server role
The server accepts binary payloads and checks whether parity is valid.
Local run commands
python projects/tcp-even-parity/server.py
python projects/tcp-even-parity/client.py --data 101010 --append-parity-bit
Use cases