Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dlocal_socket_context.cpp29 LocalSocketManager *pMgr = reinterpret_cast<LocalSocketManager *>(manager_->GetData()); in GetSocketFd() local
30 return (pMgr != nullptr) ? pMgr->sockfd_ : -1; in GetSocketFd()
38 if (auto pMgr = reinterpret_cast<LocalSocketManager *>(manager_->GetData()); pMgr != nullptr) { in SetSocketFd() local
39 pMgr->sockfd_ = sock; in SetSocketFd()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dlocal_socket_exec.cpp828 …if (auto pMgr = reinterpret_cast<LocalSocketManager *>(context->GetManager()->GetData()); pMgr != … in ExecLocalSocketConnect() local
829 pMgr->isConnected_ = true; in ExecLocalSocketConnect()
869 …if (auto pMgr = reinterpret_cast<LocalSocketManager *>(context->GetManager()->GetData()); pMgr != … in ExecLocalSocketClose() local
870 pMgr->isConnected_ = false; in ExecLocalSocketClose()
871 pMgr->SetSocketCloseStatus(true); in ExecLocalSocketClose()
890 …if (auto pMgr = reinterpret_cast<LocalSocketManager *>(context->GetManager()->GetData()); pMgr != … in ExecLocalSocketGetState() local
891 state.SetIsConnected(pMgr->isConnected_); in ExecLocalSocketGetState()
1063 if (pMgr != nullptr) { in ExecLocalSocketServerGetState()
1113 …if (auto pMgr = reinterpret_cast<LocalSocketServerManager *>(context->GetManager()->GetData()); pM… in ExecLocalSocketServerGetExtraOptions() local
1115 if (pMgr->alreadySetExtraOptions_) { in ExecLocalSocketServerGetExtraOptions()
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_module/src/
H A Dsocket_module.cpp173 … if (auto pMgr = reinterpret_cast<LocalSocketManager *>(manager->GetData()); pMgr != nullptr) { in FinalizeLocalSocket() local
174 NETSTACK_LOGI("localsocket handle is finalized, fd: %{public}d", pMgr->sockfd_); in FinalizeLocalSocket()
175 if (pMgr->sockfd_ > 0) { in FinalizeLocalSocket()
176 close(pMgr->sockfd_); in FinalizeLocalSocket()
177 pMgr->sockfd_ = 0; in FinalizeLocalSocket()
179 delete pMgr; in FinalizeLocalSocket()