服务器编程
Java · 5 notes
- 3.2 Multithreaded Server Implemented with BIOhistorical
Multithreaded Server Implemented with BIO: Traditionally, server-side programming uses BIO.
- 3.6 Server Implemented with NIOhistorical
NIO server examples cover read and write events and connection closure, including how read return values indicate connection state.
- 3.10 Serialization Protocolhistorical
Serialization converts objects or data structures into bytes for storage or transmission. These notes use examples such as ByteBuffer to examine protocol organization.
- Heartbeat Mechanismhistorical
Heartbeats help servers clear idle channels and clients detect disconnections and decide whether to reconnect. These notes record both sides' handling.
- Packet Protocolhistorical
Application protocols must distinguish message boundaries in TCP data. These notes examine packet-protocol design through data examples and sticky-packet behavior.