Package mazealgo.model.server
Interface IServerStrategy
- All Known Implementing Classes:
GenerateMazeStrategy,SolveMazeStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
What the server does with a connected client's streams. One strategy
per "endpoint" (generate a maze, solve a maze, ...). The strategy
does not own the socket and must not close the streams it's handed —
MyServer closes the socket for it.-
Method Summary
Modifier and TypeMethodDescriptionvoidserverStrategy(InputStream inFromClient, OutputStream outToClient)
-
Method Details
-
serverStrategy
- Throws:
Exception
-