As you have asked me for a solution I'm providing you mine.
You can see that as soon as a client does not provide expected command it is kicked out.
This server won't accept multiple messages sent over the same connection (nor it was required).
An alternative implementation using a finite state machine for the implementation is shown in this other solution.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment