# m301/cafemanager architecture

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

- Interactive diagram: https://gitdiagram.com/m301/cafemanager
- Repository: https://github.com/m301/cafemanager

## Overview

Internet-Cyber Cafe Manager is a VB6 cyber-cafe management system with a server application and managed client machines. Its documented capabilities span access and session management, pricing, administration, networking, remote viewing, and print-spool control. The README identifies Server/winsck.frm as the main location for server code and documents network discovery and instruction transfer. No source excerpts were provided, so component-level calls and the precise ownership of features cannot be verified; the graph limits relationships to documented behavior.

Main entry points: [`Server/winsck.frm`](https://github.com/m301/cafemanager/blob/master/Server/winsck.frm) (Server networking), [`Client/Main.frm`](https://github.com/m301/cafemanager/blob/master/Client/Main.frm) (Client application), [`Server/Main.frm`](https://github.com/m301/cafemanager/blob/master/Server/Main.frm) (Server application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client experience"]
  node_clientapp["Client application<br/>[Main.frm]"]
  node_clientdock["Client docks<br/>[Desk.frm]"]
  node_clientlock["Lock screen<br/>[Lock.frm]"]
  node_clientstats["Network statistics<br/>[NetStat.bas]"]
  node_clientrdp["Remote viewing<br/>[RDP.frm]"]
end

subgraph group_server["Server management"]
  node_serverapp["Server application<br/>[Main.frm]"]
  node_servernetwork["Server networking<br/>[winsck.frm]"]
  node_printing["Print management<br/>[FPrinter.frm]"]
end

subgraph group_sessions["Access and sessions"]
  node_billing["Pricing and charges<br/>[winsck.frm]"]
  node_access["Access control<br/>[cToken.frm]"]
  node_session["Session transfer<br/>[sTransfer.frm]"]
end

subgraph group_operations["System operations"]
  node_systemhacks["System controls<br/>[winsck.frm]"]
  node_logs["System logs<br/>[log.mCafe]"]
end

node_operator(("Cafe operator"))
node_clientuser(("Client user"))
node_network["Cafe network"]

node_operator -->|"manages"| node_serverapp
node_clientuser -->|"uses"| node_clientapp
node_servernetwork -->|"discovers nodes"| node_network
node_servernetwork -->|"transfers instructions"| node_network

click node_clientapp "https://github.com/m301/cafemanager/blob/master/Client/Main.frm"
click node_clientdock "https://github.com/m301/cafemanager/blob/master/Client/Desk.frm"
click node_clientlock "https://github.com/m301/cafemanager/blob/master/Client/Lock.frm"
click node_clientstats "https://github.com/m301/cafemanager/blob/master/Client/NetStat.bas"
click node_clientrdp "https://github.com/m301/cafemanager/blob/master/Client/RDP.frm"
click node_serverapp "https://github.com/m301/cafemanager/blob/master/Server/Main.frm"
click node_servernetwork "https://github.com/m301/cafemanager/blob/master/Server/winsck.frm"
click node_printing "https://github.com/m301/cafemanager/blob/master/Server/FPrinter.frm"
click node_billing "https://github.com/m301/cafemanager/blob/master/Server/winsck.frm"
click node_access "https://github.com/m301/cafemanager/blob/master/Server/cToken.frm"
click node_session "https://github.com/m301/cafemanager/blob/master/Server/sTransfer.frm"
click node_systemhacks "https://github.com/m301/cafemanager/blob/master/Server/winsck.frm"
click node_logs "https://github.com/m301/cafemanager/blob/master/Server/log.mCafe"

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_clientapp,node_clientdock,node_clientlock,node_clientstats,node_clientrdp,node_clientuser toneBlue
class node_serverapp,node_servernetwork,node_printing toneAmber
class node_billing,node_access,node_session toneMint
class node_systemhacks,node_logs toneRose
class node_operator,node_network toneIndigo
```

## Components

### Client experience

- [Client application](https://github.com/m301/cafemanager/blob/master/Client/Main.frm): `Client/Main.frm`
- [Client docks](https://github.com/m301/cafemanager/blob/master/Client/Desk.frm): `Client/Desk.frm`
- [Lock screen](https://github.com/m301/cafemanager/blob/master/Client/Lock.frm): `Client/Lock.frm`
- [Network statistics](https://github.com/m301/cafemanager/blob/master/Client/NetStat.bas): `Client/NetStat.bas`
- [Remote viewing](https://github.com/m301/cafemanager/blob/master/Client/RDP.frm): `Client/RDP.frm`

### Server management

- [Server application](https://github.com/m301/cafemanager/blob/master/Server/Main.frm): `Server/Main.frm`
- [Server networking](https://github.com/m301/cafemanager/blob/master/Server/winsck.frm): `Server/winsck.frm`
- [Print management](https://github.com/m301/cafemanager/blob/master/Server/FPrinter.frm): `Server/FPrinter.frm`

### Access and sessions

- [Pricing and charges](https://github.com/m301/cafemanager/blob/master/Server/winsck.frm): `Server/winsck.frm`
- [Access control](https://github.com/m301/cafemanager/blob/master/Server/cToken.frm): `Server/cToken.frm`
- [Session transfer](https://github.com/m301/cafemanager/blob/master/Server/sTransfer.frm): `Server/sTransfer.frm`

### System operations

- [System controls](https://github.com/m301/cafemanager/blob/master/Server/winsck.frm): `Server/winsck.frm`
- [System logs](https://github.com/m301/cafemanager/blob/master/Server/log.mCafe): `Server/log.mCafe`

### Other components

- **Cafe operator**
- **Client user**
- **Cafe network**

## Connections

- Cafe operator → Server application: manages (evidence: `README.md`)
- Client user → Client application: uses (evidence: `README.md`)
- Server networking → Cafe network: discovers nodes (evidence: `README.md`)
- Server networking → Cafe network: transfers instructions (evidence: `README.md`)
