Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nelsonkariuki/multithreaded-websever-and-client
Multithreaded server that is capable of serving multiple requests simultaneously. Using threading, first create a main thread in which your modified server listens for clients at a fixed port. When it receives a TCP connection request from a client, it will set up the TCP connection through another port and services the client request in a separate thread.
https://github.com/nelsonkariuki/multithreaded-websever-and-client
Last synced: 2 days ago
JSON representation
Multithreaded server that is capable of serving multiple requests simultaneously. Using threading, first create a main thread in which your modified server listens for clients at a fixed port. When it receives a TCP connection request from a client, it will set up the TCP connection through another port and services the client request in a separate thread.
- Host: GitHub
- URL: https://github.com/nelsonkariuki/multithreaded-websever-and-client
- Owner: Nelsonkariuki
- Created: 2021-11-09T21:03:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-09T21:13:57.000Z (about 3 years ago)
- Last Synced: 2024-03-31T17:47:36.916Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
# Multithreaded-Webserver-and-Client
Environment
Python 3+
Mozilla firefox 41.0.2
Windows/linux command promptRunning the program in terminal
Run python3 webserver.py 8080 this listens for client requests
Running webserver.py on python IDE ie visual code terminal
On Python 3+ IDE--->open--- run
Testing in browser
http://127.0.0.1:8080/test.htmlIf file name is different 404 is sent
Running client.py on terminal
python3 client.py localhost test.html
On firefox search enter the followuing url127.0.0.1:8080/test.html
when you enter the wrong url it gives error 404
ie http:127.0.0.1:8080/test.ht
Also wrong port number brings an error