服务器编程
Java · 5 notes
- 3.2 Multithreaded Server Implemented with BIOhistorical
Traditional server-side programming with BIO and its blocking points.
- 3.6 Server Implemented with NIOhistorical
NIO vs BIO and common questions about channel reads, selector.select, and SelectionKey.OP_WRITE.
- 3.10 Serialization Protocolhistorical
What serialization is, a custom ByteBuffer-based serialization rule, and a complete custom Serializer example.
- Heartbeat Mechanismhistorical
For servers, periodically clear idle channels; for clients, detect disconnected sessions and whether to reconnect.
- Packet Protocolhistorical
What sticky packets and split packets are, why the phenomenon appears with TCP byte streams, and how application-layer framing solves it.