I am developing TCP server in C++(win32/linux) which cater multiple client.The server is for Video Streaming.Client request video to server and Server get it from Gateway connected with camera. I am stuck up in the class Design.I found three classes by
- Peer
- Session and
- ConnectionMgr.
So here ConnectionMgr is responsible for managing other Classes.
I wanted your feedback on this.
- what info Peer and session need to have;
- How Peer and session is related
- what information needs to be modeled here.
- how to do Session maintainer.
- Managing multiple client will require Threads what information thoses may need.
Please give your feedback so that I can upgrade my design.