How sgly123/netbox works
NetBox is a C++ network server framework. Its main startup path reads configuration, creates a worker pool and registered application, then starts a TCP server; network data is handled by the application and routed through protocol handlers to a result. The graph also preserves documented HTTP, Redis, WebSocket, UDP, medical, IoT, and vision capabilities. Some feature implementations were not sampled, so their links are shown only where documented or left unverified.
Main entry points: ApplicationServer.h Application server · main.cpp Server startup · ProtocolRouter.cpp Protocol router · TcpServer.h TCP server
Components 26
Startup and applications
- Configuration reader
NetFramework/include/util/EnhancedConfigReader.h - Server startup
main.cpp - Application registry
NetFramework/src/app/ApplicationRegistry.cpp - Application server
app/include/ApplicationServer.h
Network runtime
- TCP server
NetFramework/include/server/TcpServer.h - UDP server
NetFramework/src/server/UdpServer.cpp - I/O factory
NetFramework/include/IO/IOFactory.h - I/O multiplexer
NetFramework/include/base/IOMultiplexer.h
Protocol handling
- Protocol router
Protocol/src/ProtocolRouter.cpp - Simple Header
Protocol/include/SimpleHeaderProtocol.h - HTTP protocol
Protocol/include/HttpProtocol.h - WebSocket protocol
Protocol/src/WebSocketProtocol.cpp - Redis RESP
Protocol/src/RedisProtocol.cpp
Product services
- Echo and HTTP app
app/src/server.cpp - Redis services
app/src/RedisApplicationServer.cpp - WebSocket service
app/src/WebSocketServer.cpp - IM service
app/src/IMServer.cpp - Medical service
app/src/ECGDeviceServer.cpp - UDP echo service
app/src/UdpEchoServer.cpp - IoT gateway
plugins/iot/IoTGatewayServer.cpp - Vision service
plugins/vision/VisionServer.cpp
Runtime support
- Worker pool
NetFramework/src/base/DoubleLockThreadPool.cpp - Logging
NetFramework/include/base/Logger.h - Metrics collector
NetFramework/include/monitoring/MetricsCollector.h
Other components
- Operator
- Network client
Connections 29
- Operator → Server startup: configures
- Server startup → Configuration reader: loads config
main.cpp - Server startup → Application registry: creates app
main.cpp - Server startup → Worker pool: creates pool
main.cpp - Server startup → Application server: starts app
main.cpp - Application server → TCP server: inherits
app/include/ApplicationServer.h - TCP server → I/O factory: creates I/O
NetFramework/include/server/TcpServer.h - I/O factory → I/O multiplexer: selects implementation
NetFramework/include/IO/IOFactory.h - Network client → TCP server: connects
- TCP server → Application server: delivers data
app/include/ApplicationServer.h - Application server → Protocol router: routes data
- Protocol router → Simple Header: dispatches
- Protocol router → HTTP protocol: dispatches
- Simple Header → Echo and HTTP app: provides packets
app/src/server.cpp - HTTP protocol → Echo and HTTP app: handles requests
app/src/server.cpp - Echo and HTTP app → Network client: sends response
app/src/server.cpp - Protocol router → WebSocket protocol: dispatches
- WebSocket protocol → WebSocket service: handles frames
- Protocol router → Redis RESP: dispatches
- Redis RESP → Redis services: handles commands
- Application server → Worker pool: submits work
- Application registry → Application server: creates application
- UDP server → UDP echo service: serves traffic
- Application server → IM service: hosts application
- Application server → Medical service: hosts application
- Application server → WebSocket service: hosts application
- Application server → IoT gateway: hosts plugin
- Application server → Vision service: hosts plugin
- Server startup → Logging: initializes
main.cpp