Home
last modified time | relevance | path

Searched refs:netConnection (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_callback.cpp28 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; in NetAvailable() local
29 if (netConnection == nullptr) { in NetAvailable()
30 NETMANAGER_BASE_LOGE("can not find netConnection handle"); in NetAvailable()
33 if (netConnection->netAvailible.size() == 0) { in NetAvailable()
38 int len = static_cast<int>(netConnection->netAvailible.size()); in NetAvailable()
40 netConnection->netAvailible[i](id); in NetAvailable()
83 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; in NetCapabilitiesChange() local
84 if (netConnection == nullptr) { in NetCapabilitiesChange()
85 NETMANAGER_BASE_LOGE("can not find netConnection handle"); in NetCapabilitiesChange()
88 if (netConnection in NetCapabilitiesChange()
174 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; NetConnectionPropertiesChange() local
207 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; NetLost() local
227 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; NetUnavailable() local
246 NetConnectionImpl *netConnection = NET_CONNECTIONS[this]; NetBlockStatusChange() local
[all...]
H A Dnet_connection_impl.cpp28 NetConnectionImpl *netConnection = NetConnectionImpl::MakeNetConnection(); in NetConnectionProxy() local
29 if (netConnection == nullptr) { in NetConnectionProxy()
33 netConnection->hasNetSpecifier_ = true; in NetConnectionProxy()
46 netConnection->netSpecifier_ = netSpecifier; in NetConnectionProxy()
49 netConnection->hasTimeout_ = true; in NetConnectionProxy()
50 netConnection->timeout_ = timeout; in NetConnectionProxy()
52 netConn_ = netConnection; in NetConnectionProxy()
122 auto netConnection = new NetConnectionImpl(); in MakeNetConnection() local
123 if (netConnection) { in MakeNetConnection()
124 NET_CONNECTIONS[netConnection in MakeNetConnection()
129 DeleteNetConnection(NetConnectionImpl *netConnection) DeleteNetConnection() argument
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/src/
H A Dnetconnection.cpp37 auto netConnection = new NetConnection(eventManager); in MakeNetConnection() local
38 NET_CONNECTIONS[netConnection->observer_.GetRefPtr()] = netConnection; in MakeNetConnection()
39 return netConnection; in MakeNetConnection()
42 void NetConnection::DeleteNetConnection(NetConnection *netConnection) in DeleteNetConnection() argument
45 NET_CONNECTIONS.erase(netConnection->observer_.GetRefPtr()); in DeleteNetConnection()
46 delete netConnection; in DeleteNetConnection()
/foundation/communication/netmanager_base/frameworks/js/napi/connection/observer/src/
H A Dnet_conn_callback_observer.cpp31 NETMANAGER_BASE_LOGI("can not find netConnection key"); in NetAvailable()
34 NetConnection *netConnection = NET_CONNECTIONS[this]; in NetAvailable() local
35 if (netConnection == nullptr) { in NetAvailable()
36 NETMANAGER_BASE_LOGI("can not find netConnection handle"); in NetAvailable()
39 auto manager = netConnection->GetEventManager(); in NetAvailable()
54 manager->EmitByUvWithModuleId(EVENT_NET_AVAILABLE, handler, netConnection->moduleId_); in NetAvailable()
66 NETMANAGER_BASE_LOGI("can not find netConnection key"); in NetCapabilitiesChange()
69 NetConnection *netConnection = NET_CONNECTIONS[this]; in NetCapabilitiesChange() local
70 if (netConnection == nullptr) { in NetCapabilitiesChange()
71 NETMANAGER_BASE_LOGI("can not find netConnection handl in NetCapabilitiesChange()
105 NetConnection *netConnection = NET_CONNECTIONS[this]; NetConnectionPropertiesChange() local
140 NetConnection *netConnection = NET_CONNECTIONS[this]; NetLost() local
170 NetConnection *netConnection = NET_CONNECTIONS[this]; NetUnavailable() local
202 NetConnection *netConnection = NET_CONNECTIONS[this]; NetBlockStatusChange() local
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_module/src/
H A Dconnection_module.cpp133 std::unique_ptr<NetConnection, decltype(&NetConnection::DeleteNetConnection)> netConnection( in ParseNetConnectionParams()
135 netConnection->moduleId_ = g_moduleId; in ParseNetConnectionParams()
142 return netConnection.release(); in ParseNetConnectionParams()
145 if (!ParseNetSpecifier(env, argv[ARG_INDEX_0], netConnection->netSpecifier_)) { in ParseNetConnectionParams()
149 netConnection->hasNetSpecifier_ = true; in ParseNetConnectionParams()
150 return netConnection.release(); in ParseNetConnectionParams()
153 if (!ParseNetSpecifier(env, argv[ARG_INDEX_0], netConnection->netSpecifier_)) { in ParseNetConnectionParams()
157 netConnection->hasNetSpecifier_ = true; in ParseNetConnectionParams()
158 netConnection->hasTimeout_ = true; in ParseNetConnectionParams()
159 netConnection in ParseNetConnectionParams()
313 auto netConnection = static_cast<NetConnection *>(manager->GetData()); CreateNetConnection() local
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/include/
H A Dnetconnection.h44 static void DeleteNetConnection(NetConnection *netConnection);
/foundation/communication/netmanager_base/frameworks/cj/connection/include/
H A Dnet_connection_impl.h55 static void DeleteNetConnection(OHOS::NetManagerStandard::NetConnectionImpl *netConnection);
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_exec.cpp236 auto netConnection = reinterpret_cast<TcpConnection *>(para); in MakeTcpConnectionMessage() local
238 std::unique_ptr<TcpConnection, decltype(deleter)> handler(netConnection, deleter); in MakeTcpConnectionMessage()
241 return ConstructTCPSocketConnection(env, info, netConnection->clientId); in MakeTcpConnectionMessage()

Completed in 9 milliseconds