Home
last modified time | relevance | path

Searched refs:EVENT_CLOSE (Results 1 - 14 of 14) sorted by relevance

/foundation/communication/netstack/frameworks/js/napi/socket/constant/include/
H A Devent_list.h27 constexpr const char *EVENT_CLOSE = "close"; variable
/foundation/communication/netstack/frameworks/js/napi/socket/socket_module/src/
H A Dsocket_module.cpp638 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 Dconstant.cpp42 const char *EventName::EVENT_CLOSE = "close"; member in OHOS::NetStack::Websocket::EventName
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dmonitor.cpp39 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 Dmonitor_server.cpp41 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 Dtlssocket_exec.cpp99 std::string events[] = {EVENT_MESSAGE, EVENT_ERROR, EVENT_CONNECT, EVENT_CLOSE}; in ExecInit()
H A Dtlssocketserver_exec.cpp507 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 Dwebsocket_module.cpp102 {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 Dconstant.h101 static const char *EVENT_CLOSE; member in OHOS::NetStack::Websocket::final
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
H A Dwebsocket_exec.cpp1017 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 Dws_common.h402 EVENT_CLOSE, member in OHOS::OHOS::OHOS::Rosen::SessionEvent
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_exec.cpp373 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 Dlocal_socket_exec.cpp378 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 Dwindow_scene_session_impl.cpp2457 hostSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner()
2468 weakSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner()
2474 hostSession->OnSessionEvent(SessionEvent::EVENT_CLOSE); in MainWindowCloseInner()

Completed in 29 milliseconds