MPDC: Multi Party Domain Cryptosystem 1.0.0.0b (A0)
MPDC Interior protocol
|
MPDC Agent Server Interface. More...
#include "common.h"
Go to the source code of this file.
Functions | |
MPDC_EXPORT_API void | mpdc_agent_pause_server () |
Pause the Agent server. | |
MPDC_EXPORT_API int32_t | mpdc_agent_start_server () |
Start the Agent server. | |
MPDC_EXPORT_API void | mpdc_agent_stop_server () |
Stop the Agent server. | |
MPDC Agent Server Interface.
This header defines the public functions for the MPDC Agent server, a key component of the MPDC network. The Agent server is responsible for managing incoming network connections and processing protocol messages specific to an agent device. Its duties include handling certificate generation and verification, responding to topology convergence requests from the DLA, processing fragment query and master fragment key exchange requests, and managing registration/resign operations.
The Agent server implementation supports a wide range of protocol operations and user commands including:
Network Reception and Error Handling: The Agent's receive loop processes various network packet flags (e.g., converge request, fragment query, mfk request, revocation broadcast) and dispatches them to the appropriate internal functions. Detailed logging and error reporting ensure that issues such as socket failures, authentication errors, and protocol mismatches are detected and handled.
These tests ensure both the correctness of the protocol operations and the robustness of the Agent server under realistic network and user interaction scenarios.
MPDC_EXPORT_API void mpdc_agent_pause_server | ( | ) |
Pause the Agent server.
This function pauses the MPDC Agent server, suspending the processing of network commands and user input.
MPDC_EXPORT_API int32_t mpdc_agent_start_server | ( | ) |
Start the Agent server.
This function initializes the MPDC Agent server by setting up the network socket for accepting connections, initializing local state (including certificate and topology information), and starting the main command and receive loops. It also spawns an idle timer thread to monitor user inactivity.
MPDC_EXPORT_API void mpdc_agent_stop_server | ( | ) |
Stop the Agent server.
This function stops the MPDC Agent server, terminates the command loop and network receive loop, and cleans up all allocated resources.