An open API service indexing awesome lists of open source software.

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++

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
````