/foundation/communication/netstack/frameworks/js/napi/socket/constant/include/ |
H A D | event_list.h | 27 constexpr const char *EVENT_CLOSE = "close"; variable
|
/foundation/communication/netstack/frameworks/js/napi/socket/socket_module/src/ |
H A D | socket_module.cpp | 638 return ModuleTemplate::On(env, info, {EVENT_MESSAGE, EVENT_LISTENING, EVENT_ERROR, EVENT_CLOSE}, false); in On() 643 return ModuleTemplate::Off(env, info, {EVENT_MESSAGE, EVENT_LISTENING, EVENT_ERROR, EVENT_CLOSE}); in Off() 746 return ModuleTemplate::On(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}, false); 751 return ModuleTemplate::Off(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}); 801 napi_value ret = ModuleTemplate::On(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}, false); 808 return ModuleTemplate::Off(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}); 838 return ModuleTemplate::On(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}, false); 843 return ModuleTemplate::Off(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}); 908 return ModuleTemplate::On(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}, false); 913 return ModuleTemplate::Off(env, info, {EVENT_MESSAGE, EVENT_CONNECT, EVENT_ERROR, EVENT_CLOSE}); [all...] |
/foundation/communication/netstack/frameworks/js/napi/websocket/constant/src/ |
H A D | constant.cpp | 42 const char *EventName::EVENT_CLOSE = "close"; member in OHOS::NetStack::Websocket::EventName
|
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
H A D | monitor.cpp | 39 constexpr std::string_view EVENT_CLOSE = "close"; member 41 constexpr std::initializer_list<std::string_view> EVENTS = {EVENT_MESSAGE, EVENT_CONNECT, EVENT_CLOSE, EVENT_ERROR}; 210 if (event == EVENT_CLOSE) { in ParserEventForOn() 213 manager->EmitByUv(std::string(EVENT_CLOSE), nullptr, EventConnectCloseCallback); in ParserEventForOn() 284 if (event == EVENT_CLOSE) { in ParserEventForOff()
|
H A D | monitor_server.cpp | 41 constexpr std::string_view EVENT_CLOSE = "close";
member 541 if (event == EVENT_CLOSE) {
in TLSConnectionRegEvent() 542 monitors_.insert(EVENT_CLOSE);
in TLSConnectionRegEvent() 546 eventManager->EmitByUv(std::string(EVENT_CLOSE), static_cast<void *>(this), EventCloseCallback);
in TLSConnectionRegEvent() 570 if (event == EVENT_CLOSE) {
in TLSConnectionUnRegEvent() 571 monitors_.erase(EVENT_CLOSE);
in TLSConnectionUnRegEvent()
|
H A D | tlssocket_exec.cpp | 99 std::string events[] = {EVENT_MESSAGE, EVENT_ERROR, EVENT_CONNECT, EVENT_CLOSE}; in ExecInit()
|
H A D | tlssocketserver_exec.cpp | 507 context->Emit(EVENT_CLOSE, std::make_pair(NapiUtils::GetUndefined(context->GetEnv()), in CloseCallback()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_module/src/ |
H A D | websocket_module.cpp | 102 {EventName::EVENT_OPEN, EventName::EVENT_MESSAGE, EventName::EVENT_CLOSE}, true); in On() 110 {EventName::EVENT_OPEN, EventName::EVENT_MESSAGE, EventName::EVENT_CLOSE, in Off()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/constant/include/ |
H A D | constant.h | 101 static const char *EVENT_CLOSE; member in OHOS::NetStack::Websocket::final
|
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/ |
H A D | websocket_exec.cpp | 1017 if (!manager->HasEventListener(EventName::EVENT_CLOSE)) { in OnClose() 1018 NETSTACK_LOGI("no event listener: %{public}s", EventName::EVENT_CLOSE); in OnClose() 1024 manager->EmitByUvWithoutCheckShared(EventName::EVENT_CLOSE, para, CallbackTemplate<CreateClosePara>); in OnClose()
|
/foundation/window/window_manager/window_scene/interfaces/include/ |
H A D | ws_common.h | 402 EVENT_CLOSE, member in OHOS::OHOS::OHOS::Rosen::SessionEvent
|
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/ |
H A D | socket_exec.cpp | 373 manager->EmitByUv(EVENT_CLOSE, nullptr, CallbackTemplate<MakeClose>); 2161 context->Emit(EVENT_CLOSE, std::make_pair(NapiUtils::GetUndefined(context->GetEnv()), in UdpDropMembershipCallback() 2200 context->Emit(EVENT_CLOSE, std::make_pair(NapiUtils::GetUndefined(context->GetEnv()), in CloseCallback()
|
H A D | local_socket_exec.cpp | 378 manager_->EmitByUv(EVENT_CLOSE, nullptr, CallbackTemplate<MakeClose>); in OnCloseMessage() 380 manager->EmitByUv(EVENT_CLOSE, nullptr, CallbackTemplate<MakeClose>); in OnCloseMessage()
|
/foundation/window/window_manager/wm/src/ |
H A D | window_scene_session_impl.cpp | 2457 hostSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner() 2468 weakSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner() 2474 hostSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner()
|