![截圖 2024-03-11 晚上7 38 17](https://private-user-images.githubusercontent.com/68311584/311688999-03298318-d388-4815-b12d-6a67f11cd703.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NDA3NjAsIm5iZiI6MTcyNDQ0MDQ2MCwicGF0aCI6Ii82ODMxMTU4NC8zMTE2ODg5OTktMDMyOTgzMTgtZDM4OC00ODE1LWIxMmQtNmE2N2YxMWNkNzAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE5MTQyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxNTk5MzgxZWQ2ZTYyZTA1NmQxMGJkZWU1NDNlNjVkMTViMTQ0YzM3ZjUwODZkNmU5MTlmNDBhNTkzOTkzMGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Imh6cywBCgrrYcR96sbQPz7wa0ZuLbWaGiFNawsI1k0)
- DNS: Convert the URLs sent by the client into IP addresses and return them to the client.
- QUERY: Use file reading to query the
query.txt
file with the student ID sent by the client. Return the email associated with this student ID to the client. If the student ID is not found, return "No such student ID". - QUIT: After the client disconnects, continue waiting for the next service without disconnecting.
The client should be able to connect to the server, send requests to the server, and receive data returned from the server.