https://github.com/thecompez/serverclientdemo
Send and receive data via Network IP & Port using C++ based operating system's networking libraries and APIs.
https://github.com/thecompez/serverclientdemo
Last synced: over 1 year ago
JSON representation
Send and receive data via Network IP & Port using C++ based operating system's networking libraries and APIs.
- Host: GitHub
- URL: https://github.com/thecompez/serverclientdemo
- Owner: TheCompez
- License: mit
- Created: 2023-07-09T08:51:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T08:58:16.000Z (about 3 years ago)
- Last Synced: 2025-02-12T00:44:58.383Z (over 1 year ago)
- Language: C++
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Modern Project-Template (PT)
A very simple server and client demonstrates.
## Building
- You need CMake tool for building source code
- CMake 3.23 or higher is required.
```
cd build
cmake ..
make
./SimpleServerClient
```
> How to config for server and client?
- if you want compile it for server only, then set macro as below:
```
-DCOMPILE_AS_SERVER=true
-DCOMPILE_AS_CLIENT=false
```
Otherwise you can compile it for client only line this:
```
-DCOMPILE_AS_SERVER=false
-DCOMPILE_AS_CLIENT=true
```