Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 9 of 9) sorted by relevance

/ide/tools/previewer/util/
DTraceTool.cpp26 if (socket != nullptr) { in InitPipe()
27 socket.reset(); in InitPipe()
31 socket = std::make_unique<LocalSocket>(); in InitPipe()
32 if (socket == nullptr) { in InitPipe()
36 if (!socket->ConnectToServer(socket->GetTracePipeName(name), LocalSocket::READ_WRITE)) { in InitPipe()
57 *(GetInstance().socket) << osStream.str(); in SendTraceData()
71 TraceTool::TraceTool() : socket(nullptr), isReady(false) in TraceTool()
78 if (socket != nullptr) { in ~TraceTool()
79 socket->DisconnectFromServer(); in ~TraceTool()
80 socket = nullptr; in ~TraceTool()
DTraceTool.h34 std::unique_ptr<LocalSocket> socket; variable
/ide/tools/previewer/cli/
DCommandLine.h27 CommandLine(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
91 TouchPressCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
101 TouchMoveCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
111 TouchReleaseCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
120 MouseWheelCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
130 BackClickedCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
139 RestartCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
148 PowerCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
159 VolumeCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
170 BarometerCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket);
[all …]
DCommandLineInterface.cpp34 CommandLineInterface::CommandLineInterface() : socket(nullptr) {} in CommandLineInterface()
40 if (socket != nullptr) { in InitPipe()
41 socket.reset(); in InitPipe()
45 socket = std::make_unique<LocalSocket>(); in InitPipe()
46 if (socket == nullptr) { in InitPipe()
50 if (!socket->ConnectToServer(socket->GetCommandPipeName(name), LocalSocket::READ_WRITE)) { in InitPipe()
64 *(GetInstance().socket) << value.toStyledString(); in SendJsonData()
77 if (socket == nullptr) { in SendJSHeapMemory()
81 *socket << result.toStyledString(); in SendJSHeapMemory()
91 *socket << result.toStyledString(); in SendWebsocketStartupSignal()
[all …]
DCommandLine.cpp40 CommandLine::CommandLine(CommandType commandType, const Json::Value& arg, const LocalSocket& socket) in CommandLine() argument
41 : args(arg), cliSocket(socket), type(commandType), commandName("") in CommandLine()
181 …mand::TouchPressCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket) in TouchPressCommand() argument
182 : CommandLine(commandType, arg, socket) in TouchPressCommand()
207 …mand::MouseWheelCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket) in MouseWheelCommand() argument
208 : CommandLine(commandType, arg, socket) in MouseWheelCommand()
222 …nd::TouchReleaseCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket) in TouchReleaseCommand() argument
223 : CommandLine(commandType, arg, socket) in TouchReleaseCommand()
257 …mmand::TouchMoveCommand(CommandType commandType, const Json::Value& arg, const LocalSocket& socket) in TouchMoveCommand() argument
258 : CommandLine(commandType, arg, socket) in TouchMoveCommand()
[all …]
DCommandLineFactory.h31 const LocalSocket& socket);
36 CreateObject(CommandLine::CommandType, const Json::Value&, const LocalSocket& socket);
39 …que_ptr<CommandLine> (*)(CommandLine::CommandType, const Json::Value&, const LocalSocket& socket)>;
DCommandLineFactory.cpp77 const LocalSocket& socket) in CreateCommandLine() argument
84 socket << commandResult.toStyledString(); in CreateCommandLine()
93 unique_ptr<CommandLine> cmdLine = typeMap[command](type, val, socket); in CreateCommandLine()
103 … const Json::Value& args, const LocalSocket& socket) in CreateObject() argument
105 return make_unique<T>(type, args, socket); in CreateObject()
DCommandLineInterface.h50 std::unique_ptr<LocalSocket> socket; variable
/ide/tools/previewer/util/unix/
DLocalSocket.cpp41 socketHandle = socket(AF_UNIX, SOCK_STREAM, 0); in ConnectToServer()