From 4a3ae9929f4657a0f2e9ccf393205655895bb501 Mon Sep 17 00:00:00 2001 From: Gab <24553253+gabrix73@users.noreply.github.com> Date: Sat, 8 Mar 2025 14:59:35 +0100 Subject: Add files via upload --- test_health.py | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 test_health.py (limited to 'test_health.py') diff --git a/test_health.py b/test_health.py new file mode 100644 index 0000000..23ac584 --- /dev/null +++ b/test_health.py @@ -0,0 +1,61 @@ + +# Secure P2P Chat Application + +A secure P2P chat application with advanced mesh networking capabilities, designed for resilient and private communication. + +## Key Features +- Mesh Networking Protocol +- Tor Integration +- Distributed Hash Table (DHT) +- Secure Communication Channels +- Health Monitoring Services + +## Project Structure +``` +. +├── network/ +│ ├── __init__.py +│ ├── mesh.py +│ └── tor_manager.py +├── security/ +│ ├── __init__.py +│ ├── crypto.py +│ └── memory.py +├── ui/ +│ ├── __init__.py +│ └── chat_window.py +├── mesh_chat.py +├── test_health.py +└── libraries.html +``` + +## Required Dependencies +```python +# Install using pip +aiohttp +kademlia +pynacl +pysocks +pyspx +zstandard +``` + +## Running the Application +1. Install dependencies: +```bash +pip install aiohttp kademlia pynacl pysocks pyspx zstandard +``` + +2. Start the application: +```bash +python mesh_chat.py +``` + +3. Test health check: +```bash +python test_health.py +``` + +## Testing +- HTTP Health Check: Visit http://localhost:12345 +- Health Status: Visit http://localhost:12345/health -- cgit v1.2.3