/CLI-Messaging.py

Send client-side messages to the server-side in just two files.

Primary LanguagePythonMIT LicenseMIT

Usage:

send messages from client side to the server side

How to run:

[] clone this repo

[] run python server.py in a terminal (pwsh)

[] run python client.py in another terminal (pwsh)

[] start sending messages from the terminal where client.py was run.

Modules used:

socket : module provides low-level networking functionality. It enables the creation of network sockets, which are endpoints for sending or receiving data across a computer network.

random : provides functions for generating random numbers. This is useful for scenarios where you need to introduce randomness or unpredictability.

string : contains various string-related functions, including character sets and string manipulation tools.

Note:

This is a basic example and doesn't handle errors or implement more advanced features, but it demonstrates the use of socket, random, and string for a simple server client interaction.