Home
last modified time | relevance | path

Searched refs:NapiSppServer (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/socket/
H A Dnapi_bluetooth_spp_server.cpp29 int NapiSppServer::count = 0;
30 std::map<int, std::shared_ptr<NapiSppServer>> NapiSppServer::serverMap;
36 DECLARE_NAPI_FUNCTION("sppListen", NapiSppServer::SppListen), in DefineSppFunctions()
37 DECLARE_NAPI_FUNCTION("sppAccept", NapiSppServer::SppAccept), in DefineSppFunctions()
43 DECLARE_NAPI_FUNCTION("on", NapiSppServer::RegisterSocketObserver), in DefineSppFunctions()
44 DECLARE_NAPI_FUNCTION("off", NapiSppServer::DeRegisterSocketObserver), in DefineSppFunctions()
114 napi_value NapiSppServer::SppListen(napi_env env, napi_callback_info info) in SppListen()
159 std::shared_ptr<NapiSppServer> server = std::make_shared<NapiSppServer>(); in SppListen()
160 server->id_ = NapiSppServer::count++; in SppListen()
209 std::shared_ptr<NapiSppServer> server = NapiSppServer::serverMap[serverSocketNum]; in CheckSppAcceptParams()
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_spp_server.h38 struct NapiSppServer { struct
46 static std::map<int, std::shared_ptr<NapiSppServer>> serverMap; argument
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/
H A Dnapi_bluetooth_host.cpp63 return NapiSppServer::RegisterSocketObserver(env, info); in RegisterHostObserver()
85 return NapiSppServer::DeRegisterSocketObserver(env, info); in DeregisterHostObserver()