Directory Structure
Workerman // Workerman kernel code
├── Connection // Related to socket connections
│ ├── ConnectionInterface.php // Socket connection interface
│ ├── TcpConnection.php // Tcp connection class
│ ├── AsyncTcpConnection.php // Asynchronous Tcp connection class
│ └── UdpConnection.php // Udp connection class
├── Events // Network events library
│ ├── EventInterface.php // Network events library interface
│ ├── Event.php // Libevent network events library
│ ├── Ev.php // Libev network events library
│ ├── Swoole.php // Swoole network events library
│ └── Select.php // Select network events library
├── Lib // Common libraries
│ ├── Constants.php // Constant definitions
│ └── Timer.php // Timer
├── Protocols // Related to protocols
│ ├── ProtocolInterface.php // Protocol interface class
│ ├── Http // Related to HTTP protocol
│ │ ├── Chunk.php // HTTP chunk class
│ │ ├── Request.php // HTTP request class
│ │ ├── Response.php // HTTP response class
│ │ ├── ServerSentEvents.php // SSE class
│ │ ├── Session
│ │ │ ├── FileSessionHandler.php // Session file storage
│ │ │ └── RedisSessionHandler.php // Session Redis storage
│ │ ├── Session.php // Session class
│ │ └── mime.types // MIME mapping file
│ ├── Http.php // HTTP protocol implementation
│ ├── Text.php // Text protocol implementation
│ ├── Frame.php // Frame protocol implementation
│ └── Websocket.php // Websocket protocol implementation
├── Worker.php // Worker
├── WebServer.php // WebServer
└── Autoloader.php // Autoload class