You are asked to develop a Floppy Disk Shell environment that allows users to access a floppy disk mounted on a remote computer. Your Floppy Disk Shell would give use an illusion that s/he is operating on a locally mounted floppy disk.
Required Modules:
Server daemon: a single threaded UDP Floppy Disk server, which accepts three API commands: Request for new connection. Request for data in a specific sector of the floppy disk. Request for disconnect. The server daemon should be able to handle up to 4 clients at the same time. If the 5th client tries to connect, it will be rejected.
Upon a successful connection, the client will receive a handle from the floppy server and use the handle as the reference in all future remote requests.
When a connected client requests for data or disconnection, the floppy daemon must check whether the client's handle is consistent with its port number and inet address associated. If not, the request will be rejected
我不是要求任何人解决这个问题,只是问是否有人可以提供一些我可以阅读的有用链接,因为我不知道从哪里开始......所以如果有人能告诉我从哪里开始,我将不胜感激:)
最佳答案
Beej's Guide to Network Programming是一个经常链接的网站。好不好不好说。
我自己在网上有任何教程之前,通过阅读大量代码、手册页和引用资料,艰难地学习了网络编程。最重要的是,进行大量实验。
关于c++ - 使用 UDP 连接到服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9493879/