How ductai05/s2y2_computernetworking works
Project’s Main Components
• Client Module – Found in the “client” directory, this module (client/client.cpp) is built upon SDL2 (as can be seen from the extensive “DL2”, “DL2_IMAGE”, and “DL2_TTF” subdirectories) and is likely used for the remote control interface. It acts as the point of interaction for the operator.
• Server Module – Located in the “server” directory, this contains server/server.cpp, dispatcher.cpp, and additional components (e.g., take_screenshot.cpp). The Server is responsible for controlling and managing tasks in the LAN cluster.
• Mail Module – The “mail” folder holds source files (send.cpp, listen.cpp) and batch scripts for email interactions. This module uses cURL with Winsock to handle SMTP (for sending commands) and IMAP (for receiving control emails) with Gmail.
• External Services – Gmail is used as an intermediary communication channel. Emails sent from the client (or via the server’s mail handler) are received from and sent to Gmail servers, effectively bridging the network gap.
Relationships and Interactions
• Optionally, denote the LAN network boundaries, indicating that the Client and Server are on a local network while the Mail Module interfaces with an external network (Gmail).
Architectural Patterns and Design Principles
• Communication via Asynchronous Messaging – The use of sockets for immediate communication and email for asynchronous command/control suggests employing both real-time and delayed messaging methods.
• Use of External Libraries – Identify that the Client uses the SDL2 library for graphics/UI and that the Mail Module and possibly parts of the Server use cURL and Winsock for network communications. Optionally annotate these details near each component.
Additional Detail to Capture
• Mention any configuration or build scripts that might indicate deployment practices (e.g., the “complie.bat” in the client, “run_server.bat”, and “run_taskDispatcher.bat” in the server).
• That the “add-on” directory contains additional resources such as OpenSSL executables and a complete LaTeX report—this underscores that the project comes with detailed documentation which might include versioning or secure connection aspects (if OpenSSL is used for encryption).
• The Client, Server, and Mail modules as primary components.
• Their interconnections: Client ↔ Server (socket communication), and Server ↔ Mail Module ↔ Gmail (email protocols, cURL/Winsock based).