https://github.com/fug0/client-server-unix
This project is implementation of command-line client/server application. Main features: sockets, TCP/IP, POSIX API, CMake.
https://github.com/fug0/client-server-unix
Last synced: 10 months ago
JSON representation
This project is implementation of command-line client/server application. Main features: sockets, TCP/IP, POSIX API, CMake.
- Host: GitHub
- URL: https://github.com/fug0/client-server-unix
- Owner: fug0
- Created: 2022-09-26T19:43:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T20:16:38.000Z (almost 4 years ago)
- Last Synced: 2025-03-06T01:45:43.686Z (over 1 year ago)
- Language: C++
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Client-Server App
## How to Install and Run the Project
Open console (Bash, CMD, PowerShell etc.) in project's directory and type:
```console
$ cmake .
$ cmake --build .
```
After successful builing you should open terminal windows in 'server' directory and type following (\ - is desired server's listening socket port number):
```console
./server
```
And now you can run the client by opening another one terminal in 'client' directory and typing following (\ - is host's IPv4 address you are connecting to, \ - its port number):
```console
./client
```
## How to Use the Project
On the client side you can input a string and if it contains only numbers and is less than 64 characters, then string will be sorted descending, all even number will be replaced with characters 'KB' and sum of remaining numbers will be sended to server.
On the server side this message will be received and if the number has more than 2 digits and multiple of 32, then it will be printed to the console.