rolandweber / Pityoulish

A collection of programming/debugging exercises to support a course on Distributed Systems.
Creative Commons Zero v1.0 Universal
7 stars 0 forks source link

Refactor MsgBoardClientHandlerBase/Impl classes #29

Closed rolandweber closed 7 years ago

rolandweber commented 8 years ago

The base class doesn't need the SocketBackendHandler. I put it there for convenience, assuming that a client would only ever connect to a single server. But with an asynchronous handler implementation, or a multi-threaded synchronous implementation, it would be possible to query several message boards in parallel. It's also questionable whether such implementations would use the command-line related SocketBackendHandler interface at all. Other helpers of the base class would still be useful though.

Move the socketBackend attribute to the implementation class.