Giter Site home page Giter Site logo

socket-programming's Introduction

Socket Programming Project

GitHub last commit GitHub repo size GitHub issues GitHub forks GitHub stars GitHub license

Overview

This project demonstrates a simple TCP/IP model using socket programming in Python. The model consists of a client and a server that communicate over a network.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x installed on your local machine.
  • socket
  • Git installed on your local machine.

Installation

To set up the project on your local machine, follow these steps:

Clone the repository: git clone https://github.com/vignesh-0512/socket-programming.git

Navigate to the project directory: cd socket-programming

Usage To run this model, you need to open two terminals:

To start TCP/IP model move to tcp folder command: cd tcp Start the client: python client.py

Start the server: python server.py

To work with UDP move to udp folder cd udp

Start server: python server.py Start client: python client.py

Once both the server and client are running, you can enter text in the client terminal. The text will be sent to the server.

Project Structure

client.py: Contains the client-side implementation. server.py: Contains the server-side implementation.

How It Works

  1. The server listens for incoming connections from clients.
  2. The client connects to the server and sends text input.
  3. The server receives the text input and can process or display it.

Contributing

If you want to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m "Add some feature").
  4. Push to the branch (git push origin feature-branch).
  5. Create a pull request.

Contact If you have any questions or feedback, please feel free to reach out: Email: [email protected] GitHub: vignesh-0512

This is a simple example that uses a client-server architecture with a command-line interface (CLI). Advanced features with a graphical user interface (GUI) will be published soon.

socket-programming's People

Contributors

vignesh-0512 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.