https://github.com/ar-dev-1/server
Server examples in C and C++
https://github.com/ar-dev-1/server
c cpp server
Last synced: 5 days ago
JSON representation
Server examples in C and C++
- Host: GitHub
- URL: https://github.com/ar-dev-1/server
- Owner: AR-DEV-1
- License: gpl-3.0
- Created: 2024-01-26T08:36:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T10:18:56.000Z (about 1 year ago)
- Last Synced: 2024-05-21T07:55:27.589Z (9 months ago)
- Topics: c, cpp, server
- Language: C++
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server
This is an example server repo. The code is in both C and C++.
`SIF` stands for `Server Implementation File`
`SIF` is located at `SIF/`
The `include` directory includes the `Server Header Files`
The `program` directory includes the `Program Files`To run the program compile the C and C++ code seperately. Compile the `server.c` and `main.c` into one file which will produce an executable. Compile the `server.cpp` and `main.cpp` into one file which will produce an executable.
For the C code run:
````
g++ server.c main.c -o my_server
````
For the C++ code run:
````
g++ server.cpp main.cpp -o my_server
````