# jonathanjimenezmunoz/42-exam06 architecture

> Architecture diagram of the GitHub repository jonathanjimenezmunoz/42-exam06, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jonathanjimenezmunoz/42-exam06
- Repository: https://github.com/jonathanjimenezmunoz/42-exam06

## Overview

This repository appears to be a set of 42-exam06 server implementations and iterations, rather than a single application with a documented workflow. The sampled C entry points create, bind, listen on, and accept a TCP socket; the Python servers accept a connection and print received data. The README provides no capability overview, and the C server variants and numbered mini_serv files were not excerpted, so their specific behavior and relationships are not inferred.

Main entry points: [`1/server.py`](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/server.py) (Python server 1), [`2/server.py`](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/server.py) (Python server 2), [`3/server.py`](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/server.py) (Python server 3), [`4/server.py`](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/4/server.py) (Python server 4)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_c["C variants"]
  node_c1main["C entry 1<br/>[main.c]"]
  node_c1mini["C server 1<br/>[mini_serv.c]"]
  node_c2main["C entry 2<br/>[main.c]"]
  node_c2mini["C server 2<br/>[mini_serv.c]"]
  node_c3main["C entry 3<br/>[main.c]"]
  node_c3mini["C server 3<br/>[mini_serv.c]"]
  node_c4mini["C server 4<br/>[mini_serv.c]"]
  node_c5mini["C server 5<br/>[mini_serv.c]"]
  node_c6mini["C server 6<br/>[mini_serv.c]"]
  node_c7mini["C server 7<br/>[mini_serv.c]"]
  node_cmain["Root C server<br/>[mini_serv.c]"]
  node_subjectmain["Subject C entry<br/>[main.c]"]
  node_subjectmini["Subject C server<br/>[subject.txt]"]
end

subgraph group_py["Python variants"]
  node_py1["Python server 1<br/>[server.py]"]
  node_py2["Python server 2<br/>[server.py]"]
  node_py3["Python server 3<br/>[server.py]"]
  node_py4["Python server 4<br/>[server.py]"]
  node_py5["Python server 5<br/>[server.py]"]
  node_py6["Python server 6<br/>[server.py]"]
  node_py7["Python server 7<br/>[server.py]"]
  node_pysubject["Subject Python<br/>[server.py]"]
end

node_client(("TCP client"))

node_client -.->|"connects"| node_c1main
node_client -.->|"connects"| node_c2main
node_client -.->|"connects"| node_c3main
node_client -.->|"connects"| node_subjectmain
node_client -.->|"connects"| node_py1
node_client -.->|"connects"| node_py2
node_client -.->|"connects"| node_py3
node_client -.->|"connects"| node_py4
node_client -.->|"connects"| node_py5
node_client -.->|"connects"| node_py6
node_client -.->|"connects"| node_py7
node_client -.->|"connects"| node_pysubject
node_py1 -->|"prints received data"| node_py1
node_py2 -->|"prints received data"| node_py2
node_py3 -->|"prints received data"| node_py3
node_py4 -->|"prints received data"| node_py4
node_py5 -->|"prints received data"| node_py5
node_py6 -->|"prints received data"| node_py6
node_py7 -->|"prints received data"| node_py7
node_pysubject -->|"prints received data"| node_pysubject

click node_c1main "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/main.c"
click node_c1mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/mini_serv.c"
click node_c2main "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/main.c"
click node_c2mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/mini_serv.c"
click node_c3main "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/main.c"
click node_c3mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/mini_serv.c"
click node_c4mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/4/mini_serv.c"
click node_c5mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/5/mini_serv.c"
click node_c6mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/6/mini_serv.c"
click node_c7mini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/7/mini_serv.c"
click node_cmain "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/mini_serv.c"
click node_subjectmain "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/main.c"
click node_subjectmini "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/subject.txt"
click node_py1 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/server.py"
click node_py2 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/server.py"
click node_py3 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/server.py"
click node_py4 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/4/server.py"
click node_py5 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/5/server.py"
click node_py6 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/6/server.py"
click node_py7 "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/7/server.py"
click node_pysubject "https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/server.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_c1main,node_c1mini,node_c2main,node_c2mini,node_c3main,node_c3mini,node_c4mini,node_c5mini,node_c6mini,node_c7mini,node_cmain,node_subjectmain,node_subjectmini,node_client toneBlue
class node_py1,node_py2,node_py3,node_py4,node_py5,node_py6,node_py7,node_pysubject toneAmber
```

## Components

### C variants

- [C entry 1](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/main.c): `1/main.c`
- [C server 1](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/mini_serv.c): `1/mini_serv.c`
- [C entry 2](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/main.c): `2/main.c`
- [C server 2](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/mini_serv.c): `2/mini_serv.c`
- [C entry 3](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/main.c): `3/main.c`
- [C server 3](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/mini_serv.c): `3/mini_serv.c`
- [C server 4](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/4/mini_serv.c): `4/mini_serv.c`
- [C server 5](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/5/mini_serv.c): `5/mini_serv.c`
- [C server 6](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/6/mini_serv.c): `6/mini_serv.c`
- [C server 7](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/7/mini_serv.c): `7/mini_serv.c`
- [Root C server](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/mini_serv.c): `mini_serv.c`
- [Subject C entry](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/main.c): `Subject/main.c`
- [Subject C server](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/subject.txt): `Subject/subject.txt`

### Python variants

- [Python server 1](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/1/server.py): `1/server.py`
- [Python server 2](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/2/server.py): `2/server.py`
- [Python server 3](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/3/server.py): `3/server.py`
- [Python server 4](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/4/server.py): `4/server.py`
- [Python server 5](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/5/server.py): `5/server.py`
- [Python server 6](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/6/server.py): `6/server.py`
- [Python server 7](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/7/server.py): `7/server.py`
- [Subject Python](https://github.com/jonathanjimenezmunoz/42-exam06/blob/main/Subject/server.py): `Subject/server.py`

### Other components

- **TCP client**

## Connections

- TCP client → C entry 1: connects
- TCP client → C entry 2: connects
- TCP client → C entry 3: connects
- TCP client → Subject C entry: connects
- TCP client → Python server 1: connects
- TCP client → Python server 2: connects
- TCP client → Python server 3: connects
- TCP client → Python server 4: connects
- TCP client → Python server 5: connects
- TCP client → Python server 6: connects
- TCP client → Python server 7: connects
- TCP client → Subject Python: connects
- Python server 1 → Python server 1: prints received data (evidence: `1/server.py`)
- Python server 2 → Python server 2: prints received data (evidence: `2/server.py`)
- Python server 3 → Python server 3: prints received data (evidence: `3/server.py`)
- Python server 4 → Python server 4: prints received data (evidence: `4/server.py`)
- Python server 5 → Python server 5: prints received data (evidence: `5/server.py`)
- Python server 6 → Python server 6: prints received data (evidence: `6/server.py`)
- Python server 7 → Python server 7: prints received data (evidence: `7/server.py`)
- Subject Python → Subject Python: prints received data (evidence: `Subject/server.py`)
