Home
last modified time | relevance | path

Searched refs:peerSessionName (Results 1 – 25 of 105) sorted by relevance

12345

/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_session_dispatcher.cpp67 …tr<SoftbusAgent> SoftbusSessionDispatcher::GetAgent(int32_t sessionId, std::string peerSessionName) in GetAgent() argument
69 if (peerSessionName.empty()) { in GetAgent()
73 auto agent = busNameToAgent_.find(string(peerSessionName)); in GetAgent()
75 LOGI("Get softbus Agent Success, busName:%{public}s", peerSessionName.c_str()); in GetAgent()
89 std::string peerSessionName(info.name); in OnSessionOpened() local
93 idMap_[sessionId] = std::make_pair(peerDevId, peerSessionName); in OnSessionOpened()
95 auto agent = GetAgent(sessionId, peerSessionName); in OnSessionOpened()
107 std::string peerSessionName = ""; in OnSessionClosed() local
114 peerSessionName = it->second.second; in OnSessionClosed()
119 auto agent = GetAgent(sessionId, peerSessionName); in OnSessionClosed()
H A Dsoftbus_handler.cpp182 …t SoftBusHandler::OpenSession(const std::string &mySessionName, const std::string &peerSessionName, in OpenSession() argument
185 if (mySessionName.empty() || peerSessionName.empty() || peerDevId.empty()) { in OpenSession()
199 if (!CreatSocketId(mySessionName, peerSessionName, peerDevId, socketId)) { in OpenSession()
206 …RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_FA… in OpenSession()
217 …RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_SU… in OpenSession()
222 …SoftBusHandler::CreatSocketId(const std::string &mySessionName, const std::string &peerSessionName, in CreatSocketId() argument
227 .peerName = const_cast<char*>(peerSessionName.c_str()), in CreatSocketId()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/session/
H A Dclient_trans_session_service_impl_test.cpp164 std::string peerSessionName = "peerSessionName"; variable
170 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
183 std::string peerSessionName = ""; variable
189 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
202 std::string peerSessionName = "peerSessionName"; variable
208 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
221 std::string peerSessionName = "peerSessionName"; variable
227 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/small/
H A Dsoftbus_permission.c93 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument
95 if (mySessionName == NULL || peerSessionName == NULL) { in CheckTransSecLevel()
99 if (strcmp(mySessionName, peerSessionName) == 0) { in CheckTransSecLevel()
106 if (!PermIsSecLevelPublic(peerSessionName)) { in CheckTransSecLevel()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/
H A Dproxy_session_file_test.cpp87 string peerSessionName; member
244 … void OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName);
437 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTest()
499 transInfo.peerSessionName = FILE_SESSION_NAME;
503 transInfo.peerSessionName = FILE_SESSION_NAME_DEMO;
545 std::string peerSessionName; variable
549 peerSessionName = FILE_SESSION_NAME;
553 peerSessionName = FILE_SESSION_NAME_DEMO;
568 OpenAllSession(TYPE_FILE, mySessionName, peerSessionName);
611 transInfo.peerSessionName = FILE_SESSION_NAME;
[all …]
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_manager.c46 (param->peerSessionName == NULL) || in IsValidSessionParam()
67 …if (strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, param->peerSessionName) != EOK … in CreateNewSession()
243 if (strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, sessionName) != EOK) { in CreateNonEncryptSessionInfo()
496 if (param->peerSessionName != NULL && in CreateNewSocketSession()
497 … strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, param->peerSessionName) != EOK) { in CreateNewSocketSession()
499 Anonymize(param->peerSessionName, &anonySessionName); in CreateNewSocketSession()
501 anonySessionName, strlen(param->peerSessionName)); in CreateNewSocketSession()
542 if (!IsValidString(session->info.peerSessionName, SESSION_NAME_SIZE_MAX - 1) || in CheckBindSocketInfo()
546 Anonymize(session->info.peerSessionName, &anonySessionName); in CheckBindSocketInfo()
577 param->peerSessionName = sessionNode->info.peerSessionName; in FillSessionParam()
[all …]
H A Dclient_trans_session_service.c177 static int32_t CheckParamIsValid(const char *mySessionName, const char *peerSessionName, in CheckParamIsValid() argument
187 if (!IsValidString(peerSessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid()
189 Anonymize(peerSessionName, &tmpPeerName); in CheckParamIsValid()
217 static void PrintSessionName(const char *mySessionName, const char *peerSessionName) in PrintSessionName() argument
222 Anonymize(peerSessionName, &tmpPeerName); in PrintSessionName()
250 param->peerSessionName = peerSessionName; in InitSessionParam()
265 PrintSessionName(mySessionName, peerSessionName); in OpenSession()
269 InitSessionParam(mySessionName, peerSessionName, peerNetworkId, groupId, &param); in OpenSession()
503 PrintSessionName(mySessionName, peerSessionName); in OpenSessionSync()
507 .peerSessionName = peerSessionName, in OpenSessionSync()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/
H A Dtrans_session_test.cpp269 char peerSessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; variable
277 .peerSessionName = peerSessionName,
333 char peerSessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; variable
341 .peerSessionName = peerSessionName,
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_session_dispatcher_test.cpp168 std::string peerSessionName = "peerSessionName"; variable
170 … weak_ptr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_SESSION_ID, peerSessionName);
187 std::string peerSessionName = "peerSessionName"; variable
189 …tr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_INVALID_SESSION_ID, peerSessionName);
219 std::string peerSessionName = "peerSessionName"; variable
220 … weak_ptr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_SESSION_ID, peerSessionName);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/optimization/
H A Dauth_session_test2.cpp62 string peerSessionName; member
219 … void OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName);
306 …nTest::OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName) in OpenAllSession() argument
312 …int32_t ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &… in OpenAllSession()
413 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTest()
453 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTestCase001()
490 .peerSessionName = FILE_SESSION_NAME,
520 .peerSessionName = FILE_SESSION_NAME_DEMO,
563 transInfo.peerSessionName = FILE_SESSION_NAME;
567 transInfo.peerSessionName = FILE_SESSION_NAME_DEMO;
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Dsoftbus_permission.cpp106 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument
108 if (mySessionName == nullptr || peerSessionName == nullptr) { in CheckTransSecLevel()
112 if (strcmp(mySessionName, peerSessionName) == 0) { in CheckTransSecLevel()
119 if (!PermIsSecLevelPublic(peerSessionName)) { in CheckTransSecLevel()
H A Daccess_control_virtual.c27 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName) in CheckSecLevelPublic() argument
30 (void)peerSessionName; in CheckSecLevelPublic()
H A Daccess_control.cpp104 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName) in CheckSecLevelPublic() argument
106 if (mySessionName == nullptr || peerSessionName == nullptr) { in CheckSecLevelPublic()
111 if (strlen(peerSessionName) == 0) { in CheckSecLevelPublic()
115 if (strcmp(mySessionName, peerSessionName) != 0) { in CheckSecLevelPublic()
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/softbusadapter_fuzzer/
H A Dsoftbusadapter_fuzzer.cpp29 std::string peerSessionName = "dh_control_0"; in SoftbusCreatSoftBusSinkSocketServerFuzzTest() local
34 sessionMode, peerDevId, peerSessionName); in SoftbusCreatSoftBusSinkSocketServerFuzzTest()
61 std::string peerSessionName = "dh_control_0"; in SoftbusDestroySoftbusSessionServerFuzzTest() local
66 sessionMode, peerDevId, peerSessionName); in SoftbusDestroySoftbusSessionServerFuzzTest()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/src/
H A Ddcamera_channel_source_impl.cpp78 std::string peerSessionName = SESSION_HEAD + (*iter).dhId_ + std::string("_") + sessionFlag; in CreateSession() local
80 …et = DCameraSoftbusAdapter::GetInstance().CreateSoftBusSourceSocketClient(myDevId, peerSessionName, in CreateSession()
88 mySessionName_, peerDevId, peerSessionName, listener, sessionMode); in CreateSession()
92 … DCameraSoftbusAdapter::GetInstance().sourceSessions_[peerDevId + peerSessionName] = softbusSess; in CreateSession()
H A Ddcamera_channel_sink_impl.cpp69 std::string peerSessionName = SESSION_HEAD + sessionFlag; in CreateSession() local
73 DCAMERA_CHANNLE_ROLE_SINK, sessionMode, peerDevId, peerSessionName); in CreateSession()
78 …ion_ = std::make_shared<DCameraSoftbusSession>(myDevId, mySessionName_, peerDevId, peerSessionName, in CreateSession()
H A Ddcamera_softbus_adapter.cpp132 DCameraSessionMode sessionMode, std::string peerDevId, std::string peerSessionName) in CreatSoftBusSinkSocketServer() argument
135 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer()
146 .peerName = const_cast<char*>(peerSessionName.c_str()), in CreatSoftBusSinkSocketServer()
168 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer()
172 …raSoftbusAdapter::CreateSoftBusSourceSocketClient(std::string myDevId, std::string peerSessionName, in CreateSoftBusSourceSocketClient() argument
176 GetAnonyString(myDevId).c_str(), GetAnonyString(peerSessionName).c_str()); in CreateSoftBusSourceSocketClient()
177 std::string myDevIdPeerSessionName = myDevId + std::string("_") + peerSessionName; in CreateSoftBusSourceSocketClient()
180 .peerName = const_cast<char*>(peerSessionName.c_str()), in CreateSoftBusSourceSocketClient()
198 GetAnonyString(myDevId).c_str(), GetAnonyString(peerSessionName).c_str()); in CreateSoftBusSourceSocketClient()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/
H A Ddistributed_stream_test.cpp78 const string &peerSessionName);
82 …lSession(bool isRawStream, bool isP2P, const string &mySessionName, const string &peerSessionName);
83 void OpenCtrlSession(const string &mySessionName, const string &peerSessionName);
322 const string &mySessionName, const string &peerSessionName) in OpenAllSession() argument
335 …int ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attr… in OpenAllSession()
351 …d DistributeStreamTest::OpenCtrlSession(const string &mySessionName, const string &peerSessionName) in OpenCtrlSession() argument
361 …int ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attr… in OpenCtrlSession()
430 int sendCnt, const string &mySessionName, const string &peerSessionName) in P2pTransTest() argument
432 OpenAllSession(isRawStream, isP2P, mySessionName, peerSessionName); in P2pTransTest()
/ohos5.0/foundation/filemanagement/dfs_service/utils/system/src/
H A Dutils_directory.cpp102 "PEER_SESS_NAME", info.peerSessionName); in RadarDotsReportOpenSession()
114 "PEER_SESS_NAME", info.peerSessionName, in RadarDotsReportOpenSession()
128 .peerSessionName = peerSssionName, in RadarDotsOpenSession()
149 "PEER_SESS_NAME", info.peerSessionName); in RadarDotsReportSendFile()
161 "PEER_SESS_NAME", info.peerSessionName, in RadarDotsReportSendFile()
175 .peerSessionName = peerSssionName, in RadarDotsSendFile()
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/mini/
H A Dsoftbus_permission.c39 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument
42 (void)peerSessionName; in CheckTransSecLevel()
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/softbusonsinksessionopened_fuzzer/
H A Dsoftbusonsinksessionopened_fuzzer.cpp29 std::string peerSessionName(reinterpret_cast<const char*>(data), size); in SoftbusOnSinkSessionOpenedFuzzTest()
33 .name = const_cast<char*>(peerSessionName.c_str()), in SoftbusOnSinkSessionOpenedFuzzTest()
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/softbusonsourcesessionopened_fuzzer/
H A Dsoftbusonsourcesessionopened_fuzzer.cpp29 std::string peerSessionName(reinterpret_cast<const char*>(data), size); in SoftbusOnSourceSessionOpenedFuzzTest()
33 .name = const_cast<char*>(peerSessionName.c_str()), in SoftbusOnSourceSessionOpenedFuzzTest()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/demo/transport/
H A Dgetsessioninfo_demo.c116 char peerSessionName[SESSION_NAME_SIZE_MAX] = {0}; in main() local
117 ret = GetPeerSessionName(sessionId, peerSessionName, SESSION_NAME_SIZE_MAX); in main()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttranssessionservice_fuzzer/
H A Dclienttranssessionservice_fuzzer.cpp70 char peerSessionName[SESSION_NAME_SIZE_MAX] = "ohos.fuzz.dms.test"; in OpenSessionSyncTest() local
76 OpenSessionSync(nullptr, peerSessionName, peerNetworkId, groupId, &attr); in OpenSessionSyncTest()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/cpp/src/
H A Dsession_service_impl.cpp82 …const std::string &peerSessionName, const std::string &peerNetworkId, const std::string &groupId, … in OpenSession() argument
85 if (mySessionName.empty() || peerSessionName.empty() || peerNetworkId.empty()) { in OpenSession()
89 …OpenSessionInner(mySessionName.c_str(), peerSessionName.c_str(), peerNetworkId.c_str(), groupId.c_… in OpenSession()
164 std::string peerSessionName(str); in CreateSession() local
165 session->SetPeerSessionName(peerSessionName); in CreateSession()

12345