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.
-
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
- Compile the code using the make command. This will build the executable files for the server and client:
make all
- Run the server proxy. Replace with the desired port number (e.g., 8080):
Or You can use to start the proxy with the following line:
./bin/srv_voc_TCP <port>
./scripts/lanza_proxy_srv.sh
- 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.
- 0.1
- Initial Release
- Raúl.D
- Hector García
This project is LICENSED check the file for details.