first commit
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
# ====================================================================
|
||||
# CMake Build Outputs
|
||||
# ====================================================================
|
||||
build/
|
||||
|
||||
# ====================================================================
|
||||
# Compiled Binary Files
|
||||
# ====================================================================
|
||||
*.o
|
||||
*.obj
|
||||
*.out
|
||||
*.exe
|
||||
*.app
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"name": "Debug Server",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${command:cmake.launchTargetPath}",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"cmake.sourceDirectory": "${workspaceFolder}",
|
||||
"cmake.buildDirectory": "${workspaceFolder}/build",
|
||||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
|
||||
|
||||
"VsCodeTaskButtons.tasks": [
|
||||
{
|
||||
"label": "Run Both",
|
||||
"task": "Run Server + Client Together"
|
||||
},
|
||||
{
|
||||
"label": "Run Server",
|
||||
"task": "Run Server"
|
||||
},
|
||||
{
|
||||
"label": "Run Client",
|
||||
"task": "Run Client"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Run Server",
|
||||
"type": "shell",
|
||||
"command": "./server_app",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/build/src/server"
|
||||
},
|
||||
"presentation": {
|
||||
"group": "network_group",
|
||||
"panel": "dedicated",
|
||||
"clear": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run Client",
|
||||
"type": "shell",
|
||||
"command": "./client_app",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/build/src/client"
|
||||
},
|
||||
"presentation": {
|
||||
"group": "network_group",
|
||||
"panel": "dedicated",
|
||||
"clear": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run Server + Client Together",
|
||||
"dependsOn": [
|
||||
"Run Server",
|
||||
"Run Client"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project(IPC LANGUAGES C)
|
||||
|
||||
# set(CMAKE_C_STANDARD 11)
|
||||
# set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
add_subdirectory(src/server)
|
||||
add_subdirectory(src/client)
|
||||
@@ -0,0 +1,17 @@
|
||||
# Linux IPC Implementations
|
||||
|
||||
This project was created for a lab exercise in Operating Systems at my university and features some Linux IPC implementations. Enjoy!
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Linux operating system
|
||||
- GCC compiler
|
||||
- Standard C library headers
|
||||
|
||||
### Installation
|
||||
|
||||
```bash
|
||||
$ git clone https://git.magnusku.de/David_Heunisch/liux-ipc-demo.git
|
||||
$ cd liux-ipc-demo
|
||||
make
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
add_executable(client_app client_main.c)
|
||||
|
||||
target_include_directories(client_app PRIVATE ${CMAKE_SOURCE_DIR}/src/shared)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello from Client!\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
add_executable(server_app server_main.c)
|
||||
|
||||
target_include_directories(server_app PRIVATE ${CMAKE_SOURCE_DIR}/src/shared)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello from Server!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user