Skip to content

This repository contains client server communication with both TCP and UDP

Notifications You must be signed in to change notification settings

pranawr/Client-Server-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Client Server Communication

This project is a basic implementation of socket programming using two protocols namely TCP and UDP.

How to run ?

Follow these steps to run the program in your pc.

  1. Clone the repository.

  2. Go to the folder TCP or UDP as you wish.

  3. Run following commands in your terminal.

    g++ -o testServer server.cpp
    
    ./testServer <port_number>
    
  4. Open a new window of terminal in current folder and run following commands.

    g++ -o testClient client.cpp
    
    ./testClient localhost <port_number>
    

Note - The commands given in step 3 and 4 assumes that you have gcc installed on your system.

Working -

Image of TCP

Image of TCP


Image of UDP

Image of UDP

Tech Stack

This project is developed entirely in C++.

Future Goals

Currently only one client can connect and send messages to the server at a time. I am thinking about making the server able to handle multiple clients at a time.

About

This repository contains client server communication with both TCP and UDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages