Skip to content

Four-af/socket_programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socket_programming

This is a mini project for academic purpose. It consists of several client server programs. The programs include:

  • Detecting whether the given string is palindrome or not.
  • Returning the datatype of client input.
  • Encryption and decption of client's message at server side in Rail Fence Cipher.
  • Encryption and decption of client's message at server side in Vigenère Cipher.
  • Encryption and decption of client's message at server side in Substitution Cipher.

How to run

Running in C

  1. Clone the repository
  2. Open terminal and go to the directory where the repository is cloned
  3. Run the following commands
gcc server.c -o server
gcc client.c -o client
./server
./client
  1. Enter the string in the client terminal and press enter.
  2. The server will send the result to the client.

Running in C++

  1. Clone the repository
  2. Open terminal and go to the directory where the repository is cloned
  3. Run the following commands
g++ server.cpp -o server
g++ client.cpp -o client
./server port_address
./client ip_address port_address
  1. Enter the string in the client terminal and press enter.
  2. The server will send the result to the client.

Running in Node

  1. Clone the repository
  2. Open terminal and go to the directory where the repository is cloned
  3. Run the following commands
npm install
node server.js
node client.js
  1. Enter the string in the client terminal and press enter.
  2. The server will send the result to the client.

Running in Python

  1. Clone the repository
  2. Open terminal and go to the directory where the repository is cloned
  3. Run the following commands
sudo apt-get install python3
sudo apt-get install python3-pip
pip3 install socket
pip3 install tabnanny
python server.py
python client.py
  1. Enter the string in the client terminal and press enter.
  2. The server will send the result to the client.

Author

Contributors

About

Socket-programming programs in C++, C, JavaScript and Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5