mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 22:10:17 +00:00
- Extend `test.proto` with `CloseCommand` and `CloseResponse` messages. - Introduce `CloseHandler` to process "close" actions and respond with connection termination notice. - Update `DelegateActionManager` to register `CloseHandler`. - Refactor `IPCManager` to handle "close" response headers and terminate client connections gracefully.
30 lines
533 B
Protocol Buffer
30 lines
533 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option java_package = "com.mediamanager.protocol";
|
|
option java_outer_classname = "TestProtocol";
|
|
|
|
package mediamanager.test;
|
|
|
|
message EchoCommand {
|
|
string message = 1;
|
|
}
|
|
|
|
message EchoResponse {
|
|
string message = 1;
|
|
int64 server_timestamp = 2;
|
|
}
|
|
|
|
message HeartbeatCommand {
|
|
int64 client_timestamp = 1;
|
|
}
|
|
|
|
message HeartbeatResponse {
|
|
int64 client_timestamp = 1;
|
|
int64 server_timestamp = 2;
|
|
}
|
|
message CloseCommand {
|
|
// Vazio - apenas sinaliza fechamento
|
|
}
|
|
message CloseResponse {
|
|
string message = 1;
|
|
} |