Code Monkey home page Code Monkey logo

server_client_naya_college's Introduction

Python Client-Server Examples

This repository contains several examples of client-server implementations using Python's socket module. Each example demonstrates different aspects of network programming, including TCP and UDP protocols, and handling multiple clients with threading.

├── LICENSE ├── multi_thread_tcp_client_server │ ├── client.py │ └── server.py ├── simplest_tcp_client_server │ ├── client.py │ └── server.py ├── tcp_client_server │ ├── client.py │ └── server.py └── udp_client_server ├── client.py └── server.py

Simplest TCP Client-Server (simplest_tcp_client_server)

A basic example of a TCP client and server where the client sends a message, and the server echoes it back.

How to Run:

  • Server: python simplest_tcp_client_server/server.py
  • Client: python simplest_tcp_client_server/client.py

TCP Client-Server (tcp_client_server)

A TCP client and server example with a bit more complexity, demonstrating sending and receiving larger amounts of data.

How to Run:

  • Server: python tcp_client_server/server.py
  • Client: python tcp_client_server/client.py

UDP Client-Server (udp_client_server)

Illustrates the use of UDP protocol for sending and receiving messages between client and server.

How to Run:

  • Server: python udp_client_server/server.py
  • Client: python udp_client_server/client.py

Multi-Threaded TCP Client-Server (multi_thread_tcp_client_server)

Demonstrates handling multiple clients simultaneously using threads in a TCP server.

How to Run:

  • Server: python multi_thread_tcp_client_server/server.py
  • Client: python multi_thread_tcp_client_server/client.py (Can be run in multiple terminals)

How to Use

Clone this repository. Navigate to the desired example directory. Run the server script in one terminal window. Run the client script in another terminal window.

server_client_naya_college's People

Contributors

razisamuely avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.