first commit

This commit is contained in:
David_Heunisch
2026-06-04 10:01:07 +02:00
commit 4e8a52b6f6
10 changed files with 147 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# ====================================================================
# CMake Build Outputs
# ====================================================================
build/
# ====================================================================
# Compiled Binary Files
# ====================================================================
*.o
*.obj
*.out
*.exe
*.app
+25
View File
@@ -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
}
]
}
]
}
+20
View File
@@ -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"
}
]
}
+46
View File
@@ -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"
}
}
]
}
+8
View File
@@ -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)
+17
View File
@@ -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
```
+3
View File
@@ -0,0 +1,3 @@
add_executable(client_app client_main.c)
target_include_directories(client_app PRIVATE ${CMAKE_SOURCE_DIR}/src/shared)
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
int main(void) {
printf("Hello from Client!\n");
return 0;
}
+3
View File
@@ -0,0 +1,3 @@
add_executable(server_app server_main.c)
target_include_directories(server_app PRIVATE ${CMAKE_SOURCE_DIR}/src/shared)
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
int main(void) {
printf("Hello from Server!\n");
return 0;
}