Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/session/
H A Dclient_trans_inner_socket_test.cpp57 … std::string socketName = "DBinder" + std::to_string(uid) + std::string("_") + std::to_string(pid); variable
58 auto ret = DBinderGrantPermission(uid, pid, socketName.c_str());
60 ret = DBinderRemovePermission(socketName.c_str());
77 … std::string socketName = "DBinder" + std::to_string(uid) + std::string("_") + std::to_string(pid); variable
78 auto ret = DBinderGrantPermission(uid, pid, socketName.c_str());
95 … std::string socketName = "DBinder" + std::to_string(uid) + std::string("_") + std::to_string(pid); variable
96 auto ret = DBinderGrantPermission(uid, pid, socketName.c_str());
99 ret = DBinderRemovePermission(socketName.c_str());
H A Dclient_trans_socket_service_test.cpp71 char socketName[SOCKET_NAME_INVALID_LEN + 1]; variable
72 memset_s(socketName, SOCKET_NAME_INVALID_LEN + 1, 0, SOCKET_NAME_INVALID_LEN + 1);
73 info.name = socketName;
78 memset_s(socketName, SOCKET_NAME_INVALID_LEN + 1, 'a', SOCKET_NAME_INVALID_LEN);
79 info.name = socketName;
100 char socketName[SOCKET_NAME_INVALID_LEN + 1]; variable
101 memset_s(socketName, SOCKET_NAME_INVALID_LEN + 1, 0, SOCKET_NAME_INVALID_LEN + 1);
102 info.peerName = socketName;
107 memset_s(socketName, SOCKET_NAME_INVALID_LEN + 1, 'a', SOCKET_NAME_INVALID_LEN);
108 info.peerName = socketName;
/ohos5.0/base/startup/appspawn/interfaces/innerkits/client/
H A Dappspawn_client.c94 const char *socketName; in CreateClientSocket() local
98 socketName = APPSPAWN_SOCKET_NAME; in CreateClientSocket()
101 socketName = CJAPPSPAWN_SOCKET_NAME; in CreateClientSocket()
104 socketName = NATIVESPAWN_SOCKET_NAME; in CreateClientSocket()
107 socketName = NWEBSPAWN_SOCKET_NAME; in CreateClientSocket()
113 "Socket socket fd: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
120 …HECK(ret == 0, break, "Set opt SO_PASSCRED name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
124 …HECK(ret == 0, break, "Set opt SO_SNDTIMEO name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
126 …HECK(ret == 0, break, "Set opt SO_RCVTIMEO name: %{public}s error: %{public}d", socketName, errno); in CreateClientSocket()
131 …Len = snprintf_s(addr.sun_path, pathSize, (pathSize - 1), "%s%s", APPSPAWN_SOCKET_DIR, socketName); in CreateClientSocket()
[all …]
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A 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()
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Ddbinder_softbus_client.cpp71 …inderSoftbusClient::DBinderGrantPermission(int32_t uid, int32_t pid, const std::string &socketName) in DBinderGrantPermission() argument
75 return grantPermissionFunc_(uid, pid, socketName.c_str()); in DBinderGrantPermission()
88 return grantPermissionFunc_(uid, pid, socketName.c_str()); in DBinderGrantPermission()
91 int32_t DBinderSoftbusClient::DBinderRemovePermission(const std::string &socketName) in DBinderRemovePermission() argument
95 return removePermissionFunc_(socketName.c_str()); in DBinderRemovePermission()
108 return removePermissionFunc_(socketName.c_str()); in DBinderRemovePermission()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/socket_fuzzer/
H A Dsocket_fuzzer.cpp38 std::unique_ptr<char[]> socketName = std::make_unique<char[]>(bufSize); in SocketTestWithName() local
39 if (socketName == nullptr) { in SocketTestWithName()
43 if (memset_s(socketName.get(), bufSize, 0, bufSize) != EOK) { in SocketTestWithName()
47 if (memcpy_s(socketName.get(), bufSize, data, size) != EOK) { in SocketTestWithName()
52 .name = socketName.get(), in SocketTestWithName()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
H A Ddgram_socket_server.h30 DgramSocketServer(const std::string& socketName, uint16_t maxLength) in DgramSocketServer() argument
31 : SocketServer(socketName, SOCK_DGRAM), maxPacketLength(maxLength) {} in DgramSocketServer()
H A Dsocket_server.h45 std::string socketName; variable
/ohos5.0/foundation/communication/dsoftbus/interfaces/inner_kits/transport/
H A Dinner_socket.h73 int32_t DBinderGrantPermission(int32_t uid, int32_t pid, const char *socketName);
86 int32_t DBinderRemovePermission(const char *socketName);
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/communicator/
H A Dsoftbus_adapter_standard.cpp414 std::string SoftBusAdapter::GetSocketName(const std::string &socketName) in GetSocketName() argument
418 return socketName; in GetSocketName()
421 return socketName + '-' + appId_; in GetSocketName()
426 return socketName; in GetSocketName()
431 return socketName; in GetSocketName()
436 return socketName; in GetSocketName()
444 return socketName; in GetSocketName()
449 return socketName; in GetSocketName()
453 return socketName; in GetSocketName()
456 return socketName + '-' + appId_; in GetSocketName()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_socket.cpp123 const std::string socketName = "render_service_" + std::to_string(port); in Open() local
127 …::memmove_s(address.sun_path + 1, sizeof(address.sun_path) - 1, socketName.data(), socketName.size… in Open()
129 const size_t addressSize = offsetof(sockaddr_un, sun_path) + socketName.size() + 1; in Open()
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/dfx/event/unittest/
H A Dtrans_event_test.cpp40 .socketName = "testSocket",
64 .socketName = "testSocketName",
116 .socketName = "",
252 .socketName = "testSocketName",
282 .socketName = "testSocketName",
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_service.c219 int32_t DBinderGrantPermission(int32_t uid, int32_t pid, const char *socketName) in DBinderGrantPermission() argument
221 return ClientGrantPermission(uid, pid, socketName); in DBinderGrantPermission()
224 int32_t DBinderRemovePermission(const char *socketName) in DBinderRemovePermission() argument
226 return ClientRemovePermission(socketName); in DBinderRemovePermission()
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/include/
H A Ddbinder_softbus_client.h45 int32_t DBinderGrantPermission(int32_t uid, int32_t pid, const std::string &socketName);
46 int32_t DBinderRemovePermission(const std::string &socketName);
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/
H A Dsoftbus_hidumper_util.c143 char *socketName; member
479 static void TransStatsSuccessDetail(bool success, const char *socketName, int32_t linkTypePara, int… in TransStatsSuccessDetail() argument
487 int32_t ret = sprintf_s(keyStr, sizeof(keyStr), "%s-%d", socketName, linkType); in TransStatsSuccessDetail()
526 const char *socketName = transStatsPara->socketName; in TransStats() local
531 TransStatsSuccessDetail(true, socketName, linkType, delay); in TransStats()
539 TransStatsSuccessDetail(false, socketName, linkType, delay); in TransStats()
588 char* socketName = GetStringValueByRecord(&srcRecord[i], SOCKET_KEY_NAME); in OnQueryTrans() local
594 .socketName = socketName, in OnQueryTrans()
599 cJSON_free(socketName); in OnQueryTrans()
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/
H A Dcmd_executor.cpp48 void CmdExecutor::MainLoop(const std::string& socketName) in MainLoop() argument
50 SeqPacketSocketServer cmdServer(socketName, MAX_CLIENT_CONNECTIONS); in MainLoop()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/session/src/
H A Dtrans_session_service.c119 .socketName = sessionName, in TransCreateSessionServer()
145 .socketName = sessionName, in TransRemoveSessionServer()
/ohos5.0/base/startup/appspawn/lite/
H A Dappspawn_service.c112 AppSpawnContent *AppSpawnCreateContent(const char *socketName, char *longProcName, uint32_t longPro… in AppSpawnCreateContent() argument
116 APPSPAWN_LOGI("AppSpawnCreateContent %s", socketName); in AppSpawnCreateContent()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation.c213 .socketName = info->myData.sessionName, in NotifyUdpChannelOpenFailed()
623 .socketName = NULL, in TransOnExchangeUdpInfoReply()
650 extra->socketName = info->myData.sessionName; in ReportUdpRequestHandShakeStartEvent()
659 if (extra->socketName != NULL && info->udpChannelOptType == TYPE_UDP_CHANNEL_OPEN) { in ReportUdpRequestHandShakeReplyEvent()
771 .socketName = NULL, in StartExchangeUdpInfo()
786 .socketName = NULL, in UdpOnAuthConnOpened()
816 extra.socketName = channel->info.myData.sessionName; in UdpOnAuthConnOpened()
857 .socketName = channel->info.myData.sessionName, in UdpOnAuthConnOpenFailed()
976 .socketName = channel->info.myData.sessionName, in OpenAuthConnForUdpNegotiation()
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/interface/include/
H A Dtrans_network_statistics.h34 char socketName[SESSION_NAME_SIZE_MAX]; member
/ohos5.0/base/startup/appspawn/standard/
H A Dappspawn_service.h68 const char *socketName; member
H A Dappspawn_service.c1047 static int CreateAppSpawnServer(TaskHandle *server, const char *socketName) in CreateAppSpawnServer() argument
1050 …nt ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s%s", APPSPAWN_SOCKET_DIR, socketName); in CreateAppSpawnServer()
1052 int socketId = GetControlSocket(socketName); in CreateAppSpawnServer()
1053 APPSPAWN_LOGI("get socket form env %{public}s socketId %{public}d", socketName, socketId); in CreateAppSpawnServer()
1262 AppSpawnContent *AppSpawnCreateContent(const char *socketName, char *longProcName, uint32_t nameLen… in AppSpawnCreateContent() argument
1264 APPSPAWN_CHECK(socketName != NULL && longProcName != NULL, return NULL, "Invalid name"); in AppSpawnCreateContent()
1265 …APPSPAWN_LOGI("AppSpawnCreateContent %{public}s %{public}u mode %{public}d", socketName, nameLen, … in AppSpawnCreateContent()
1278 int ret = CreateAppSpawnServer(&appSpawnContent->server, socketName); in AppSpawnCreateContent()
1297 arg->socketName = NWEBSPAWN_SOCKET_NAME; in StartSpawnService()
1319 AppSpawnContent *content = AppSpawnCreateContent(arg->socketName, argv[0], argvSize, arg->mode); in StartSpawnService()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/
H A Dinstant_statistics.cpp56 std::string socketName;
396 channelInfo->socketName = conn->appInfo.myData.sessionName; in InstAddSessionConnToRemoteInfo()
415 channelInfo->socketName = conn->peerSessionName; in InstAddTcpChannelInfoToRemoteInfo()
522 channelInfo->socketName = info->info.myData.sessionName; in InstAddUdpChannelToRemoteInfo()
620 channelInfo->socketName = info->appInfo.myData.sessionName; in SetParamByProxyChannelInfo()
695 channelInfo->socketName = info->appInfo.myData.sessionName; in InstSetParamByAuthChannelInfo()
799 (void)AddStringToJsonObject(channelJson, "socketName", channelInfo->socketName.c_str()); in InstPackChannelInfo()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/statistics/src/
H A Dclient_trans_statistics.c48 if (strcpy_s(item->socketName, SESSION_NAME_SIZE_MAX, tmpSessionName) != EOK) { in CreateSocketResource()
154 !AddStringToJsonObject(json, "socketName", resource->socketName)) { in PackStatistics()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_listener.c219 .socketName = NULL, in TdcOnConnectEvent()
275 .socketName = NULL, in TransProcDataRes()
327 .socketName = NULL, in ProcessSocketOutEvent()

12