Skip to content

TCP proxy program using sockets that counts the vowels in the text sent to it. Acting as an intermediary, it receives text input from a client and forwards it to the server while simultaneously counting the number of vowels present.

License

Notifications You must be signed in to change notification settings

raulcdr/Proxy-TCP-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy TCP Sockets

About The Project

TCP proxy program using sockets that counts the vowels in the text sent to it. Acting as an intermediary, it receives text input from a client and forwards it to the server while simultaneously counting the number of vowels present.

This project was made for the Computer Networks Subject of Universidad de Zaragoza.

tcp

Pre-requisites Installation

GCC

  • Linux: Execute the following commands in the terminal:

    sudo apt update &&
    sudo apt install gcc
    
  • macOS: Use the following command in the terminal to install Flex with Homebrew:

    brew install gcc
    

Usage

  1. Compile the code using the make command. This will build the executable files for the server and client:
    make all
  2. Run the server proxy. Replace with the desired port number (e.g., 8080):
    ./bin/srv_voc_TCP <port>
    Or You can use to start the proxy with the following line:
    ./scripts/lanza_proxy_srv.sh
  3. Open another terminal or command prompt window and navigate to the same directory and run the client. Replace <server_IP>, , and <input_file> with appropriate values. For example:
    ./bin/cli_voc_TCP <server_IP> <port> inputs/f1KB.txt

The client will send the specified input file to the server, which will then count the number of vowels and display the result.

Scripts

Version History

  • 0.1
    • Initial Release

Authors

  • Raúl.D
  • Hector García

License

This project is LICENSED check the file for details.

About

TCP proxy program using sockets that counts the vowels in the text sent to it. Acting as an intermediary, it receives text input from a client and forwards it to the server while simultaneously counting the number of vowels present.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published