Skip to content

ygsharma/python-socket-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Socket Programming

This repository contains two key projects demonstrating the power of socket programming in Python. It showcases a network bandwidth monitor and a basic client-server application using threading for concurrent connections.

Projects

Bandwidth Monitor

The bandwidth-monitor directory houses a Python script (bandwidth.py) that provides real-time network bandwidth monitoring.

Setup:

pip install -r requirements.txt

Features:

  • Real-time upload and download speeds
  • Graphical representation of network usage (Screenshots in the ss folder)

How to Run:

Ensure you have Python installed on your system. Then run the following command in your terminal:

python bandwidth-monitor/bandwidth.py

Output:

Bandwidth Monitor Screenshot

2. Client-Server Connection

The client-server directory features a simple implementation of socket-based client and server programs, demonstrating basic network communication.

Features:

  • Establish a socket connection between a server and multiple clients.
  • Utilize threading to manage multiple client connections simultaneously.

How to Run:

Launch the server by executing:

python server.py

Open another terminal window and start the client by running:

python client.py

Future Developments

A Command Line Interface (CLI) chat application built upon the client-server architecture for real-time communication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages