The FastSocket library is designed to quickly create TCP and UDP servers and clients with multi-connection handling. The library provides a simple API for setting up and managing network socket connections in Python.
- Implement UPD connection.
- Automatic manage data chunks.
- File sending.
You can install FastSocket using pip:
pip install FastSocketfrom FastSocket.fastsocket import FastSocketServer, SockerConfig
def handle_message(messages):
while not messages.empty():
msg, addr = messages.get()
print(f'Received: {msg} from {addr}')
config = SockerConfig(host='192.168.0.104', port=8080)
server = FastSocketServer(config)
server.on_new_message(handle_message)
server.start()If you want to contribute to FastSocket, we welcome pull requests! Before submitting a pull request, please make sure to review the contribution guidelines.
If you have any questions, issues, or suggestions related to FastSocket, feel free to open an issue or contact the author:
Author: Giuliano Crenna Email: giulicrenna@gmail.com
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for more details.
