|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <PilotPipeServer.hpp>
Public 成员函数 | |
| PilotPipeServer (PilotCommander *commander, unsigned long pid) | |
| ~PilotPipeServer () | |
| void | start () |
| void | stop () |
| bool | isRunning () const |
静态 Public 成员函数 | |
| static std::string | pipeName (unsigned long pid) |
Named Pipe 服务端
在目标进程中创建 named pipe,等待外部客户端(Injector)连接并发送命令。 命令格式:一行文本 +
,响应以 \0 结尾。 Pipe 名称:\.\pipe\AstUiPilot_{PID}
|
explicit |
构造函数
| commander | 命令调度器 |
| pid | 目标进程 PID(用于构造唯一的 pipe 名称) |