ch13: shared state
server networking code and logic