Home
last modified time | relevance | path

Searched refs:GetPort (Results 1 - 25 of 61) sorted by relevance

123

/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_extra_exec.cpp121 NapiUtils::SetUint32Property(env, obj, KEY_PORT, context->localAddress_.GetPort()); in GetLocalAddressCallback()
134 NapiUtils::SetUint32Property(env, obj, KEY_PORT, context->localAddress_.GetPort()); in TcpConnectionGetLocalAddressCallback()
147 NapiUtils::SetUint32Property(env, obj, KEY_PORT, context->localAddress_.GetPort()); in TcpServerGetLocalAddressCallback()
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dhttp_proxy.cpp54 uint16_t HttpProxy::GetPort() const in GetPort() function in OHOS::NetManagerStandard::HttpProxy
216 std::optional<uint16_t> GetPort() in GetPort() function
245 auto port = parser.GetPort(); in FromString()
/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/include/
H A Dnet_address.h49 [[nodiscard]] uint16_t GetPort() const;
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/
H A Dsocket_remote_info.cpp64 uint16_t SocketRemoteInfo::GetPort() const in GetPort() function in OHOS::NetStack::Socket::SocketRemoteInfo
H A Dnet_address.cpp183 uint16_t NetAddress::GetPort() const in GetPort() function in OHOS::NetStack::Socket::NetAddress
197 port_ = other.GetPort(); in operator =()
/foundation/communication/netstack/frameworks/js/napi/socket/options/include/
H A Dsocket_remote_info.h45 [[nodiscard]] uint16_t GetPort() const;
H A Dnet_address.h54 [[nodiscard]] uint16_t GetPort() const;
/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/src/
H A Dnet_address.cpp66 uint16_t NetAddress::GetPort() const in GetPort() function in OHOS::NetManagerStandard::NetAddress
/foundation/ability/ability_base/test/unittest/want/
H A Duri_test.cpp160 auto result = uri_->GetPort(); in HWTEST_F()
173 auto result = uri_->GetPort(); in HWTEST_F()
187 auto result = uri_->GetPort(); in HWTEST_F()
202 auto result = uri_->GetPort(); in HWTEST_F()
396 auto result7 = uri_->GetPort(); in HWTEST_F()
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp171 if (uri.GetPort() != -1) { in Split()
172 normalizeUri += ":" + std::to_string(uri.GetPort()); in Split()
412 napi_value FileUriNExporter::GetPort(napi_env env, napi_callback_info info) in GetPort() function in OHOS::AppFileService::ModuleFileUri::FileUriNExporter
427 return NVal::CreateUTF8String(env, to_string(fileuriEntity->fileUri_.uri_.GetPort())).val_; in GetPort()
483 NVal::DeclareNapiGetter("port", GetPort), in Export()
H A Dfile_uri_n_exporter.h45 static napi_value GetPort(napi_env env, napi_callback_info info);
/foundation/ability/ability_base/interfaces/kits/native/uri/include/
H A Duri.h62 int GetPort();
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/include/
H A Drtsp_url.h81 uint16_t GetPort() const in GetPort() function in OHOS::Sharing::RtspUrl
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dhttp_proxy.h38 [[nodiscard]] uint16_t GetPort() const;
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_transport.h82 virtual int GetPort() = 0;
/foundation/communication/netstack/test/unittest/tls_test/client/
H A DTlsSocketTest.cpp200 netAddress.SetPort(address.GetPort()); in HWTEST_F()
203 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
437 addr4.sin_port = htons(address.GetPort()); in HWTEST_F()
H A DTlsSocketUnilateralConnection.cpp221 netAddress.SetPort(address.GetPort()); in HWTEST_F()
224 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
H A DTlsSocketCertChainTest.cpp166 netAddress.SetPort(address.GetPort()); in HWTEST_F()
171 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
H A DTlsSocketCertChainOneWayTest.cpp168 netAddress.SetPort(address.GetPort()); in HWTEST_F()
174 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
H A DTlsSocketOneWayTest.cpp169 netAddress.SetPort(address.GetPort()); in HWTEST_F()
173 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
/foundation/communication/netstack/test/unittest/tlssocket/client/
H A DTlsSocketTest.cpp200 netAddress.SetPort(address.GetPort()); in HWTEST_F()
203 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
437 addr4.sin_port = htons(address.GetPort()); in HWTEST_F()
H A DTlsSocketUnilateralConnection.cpp221 netAddress.SetPort(address.GetPort()); in HWTEST_F()
224 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
H A DTlsSocketCertChainTest.cpp166 netAddress.SetPort(address.GetPort()); in HWTEST_F()
171 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
H A DTlsSocketOneWayTest.cpp169 netAddress.SetPort(address.GetPort()); in HWTEST_F()
173 EXPECT_EQ(address.GetPort(), std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in HWTEST_F()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_probe.cpp582 proxyPort = static_cast<int32_t>(globalHttpProxy_.GetPort()); in LoadProxy()
585 proxyPort = static_cast<int32_t>(netLinkInfo_.httpProxy_.GetPort()); in LoadProxy()

Completed in 12 milliseconds

123