Home
last modified time | relevance | path

Searched refs:socketName (Results 1 – 12 of 12) sorted by relevance

/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Dsocket_server.cpp37 : socketHandler(0), socketType(socketType), socketName(_socketName) in SocketServer()
42 sockPath += socketName; in SocketServer()
50 if (socketName.length()) { in Init()
51 socketHandler = GetControlSocket(socketName.c_str()); in Init()
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
Ddgram_socket_server.h30 DgramSocketServer(const std::string& socketName, uint16_t maxLength) in DgramSocketServer() argument
31 : SocketServer(socketName, SOCK_DGRAM), maxPacketLength(maxLength) {} in DgramSocketServer()
Dsocket_server.h45 std::string socketName; variable
/base/startup/appspawn/interfaces/innerkits_new/client/
Dappspawn_client.c94 …const char *socketName = type == CLIENT_FOR_APPSPAWN ? APPSPAWN_SOCKET_NAME : NWEBSPAWN_SOCKET_NAM… in CreateClientSocket() local
97 "Socket socket fd: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
104 …HECK(ret == 0, break, "Set opt SO_PASSCRED name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
108 …HECK(ret == 0, break, "Set opt SO_SNDTIMEO name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
110 …HECK(ret == 0, break, "Set opt SO_RCVTIMEO name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
115 …Len = snprintf_s(addr.sun_path, pathSize, (pathSize - 1), "%s%s", APPSPAWN_SOCKET_DIR, socketName); in CreateClientSocket()
116 … APPSPAWN_CHECK(pathLen > 0, break, "Format path %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
/base/startup/appspawn/standard/
Dappspawn_main.c67 arg.socketName = APPSPAWN_SOCKET_NAME; in main()
88 arg.socketName = NWEBSPAWN_SOCKET_NAME; in main()
Dappspawn_service.h60 const char *socketName; member
Dappspawn_service.c554 static int CreateAppSpawnServer(TaskHandle *server, const char *socketName) in CreateAppSpawnServer() argument
557 …nt ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s%s", APPSPAWN_SOCKET_DIR, socketName); in CreateAppSpawnServer()
559 int socketId = GetControlSocket(socketName); in CreateAppSpawnServer()
560 APPSPAWN_LOGI("get socket form env %{public}s socketId %{public}d", socketName, socketId); in CreateAppSpawnServer()
742 AppSpawnContent *AppSpawnCreateContent(const char *socketName, char *longProcName, uint32_t nameLen… in AppSpawnCreateContent() argument
744 APPSPAWN_CHECK(socketName != NULL && longProcName != NULL, return NULL, "Invalid name"); in AppSpawnCreateContent()
745 …APPSPAWN_LOGI("AppSpawnCreateContent %{public}s %{public}u mode %{public}d", socketName, nameLen, … in AppSpawnCreateContent()
758 int ret = CreateAppSpawnServer(&appSpawnContent->server, socketName); in AppSpawnCreateContent()
776 arg->socketName = NWEBSPAWN_SOCKET_NAME; in StartSpawnService()
798 AppSpawnContent *content = AppSpawnCreateContent(arg->socketName, argv[0], argvSize, arg->mode); in StartSpawnService()
[all …]
/base/hiviewdfx/hilog/services/hilogd/
Dcmd_executor.cpp48 void CmdExecutor::MainLoop(const std::string& socketName) in MainLoop() argument
50 SeqPacketSocketServer cmdServer(socketName, MAX_CLIENT_CONNECTIONS); in MainLoop()
/base/startup/appspawn/lite/
Dappspawn_service.c112 AppSpawnContent *AppSpawnCreateContent(const char *socketName, char *longProcName, uint32_t longPro… in AppSpawnCreateContent() argument
116 APPSPAWN_LOGI("AppSpawnCreateContent %s", socketName); in AppSpawnCreateContent()
/base/startup/appspawn/common/
Dappspawn_server.h59 AppSpawnContent *AppSpawnCreateContent(const char *socketName, char *longProcName, uint32_t longPro…
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_socket_manager.c635 static int32_t PrepareBindSocket(const char *socketName, DeviceIdentify *devId, int32_t *socketId, … in PrepareBindSocket() argument
637 if (socketName == NULL || devId == NULL || socketId == NULL) { in PrepareBindSocket()
650 int32_t ret = memcpy_s(name, SOCKET_NAME_LEN, socketName, SOCKET_NAME_LEN); in PrepareBindSocket()
677 …G_INFO("clientName is %{public}s to socket %{public}s %{public}d", clientName, socketName, socket); in PrepareBindSocket()
/base/startup/appspawn/test/unittest/
Dapp_spawn_test_helper.cpp303 int LocalTestServer::Run(const char *socketName, RecvMsgProcess recvMsg) in Run() argument
306 …nt ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s%s", APPSPAWN_SOCKET_DIR, socketName); in Run()
661 startRrg.socketName = APPSPAWN_SOCKET_NAME; in StartSpawnServer()
681 startRrg.socketName = NWEBSPAWN_SOCKET_NAME; in StartSpawnServer()