有个试题, 帮忙给点思路,谢谢
1. Here is the situation:
I. There is an incoming streaming of data thru TCP/IP in raw format
II. You need to process these data into a user defined format
III. There are clients that randomly connect/disconnect to/from you
IV. You need to relay the processed data to all the clients connecting to you
V. You need to have a GUI showing how much data is processed and which client is connected.
Draw a simple design diagram showing:
• How to achieve the above and specify what data type is used
• If thread is used, show where thread-safe techniques should be implemented
• Explain what kind of networking protocol/techniques is used at different places and why choose such implementation
Explain why and how you come up with this design and what the pros and cons are.