Home
last modified time | relevance | path

Searched refs:SetPort (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_extra_exec.cpp64 localAddress.SetPort(ntohs(addrIn->sin_port)); in ExecGetLocalAddress()
71 localAddress.SetPort(ntohs(addrIn6->sin6_port)); in ExecGetLocalAddress()
99 localAddress.SetPort(ntohs(addrIn->sin_port)); in ExecTcpServerGetLocalAddress()
106 localAddress.SetPort(ntohs(addrIn6->sin6_port)); in ExecTcpServerGetLocalAddress()
H A Dsocket_exec.cpp333 remoteInfo.SetPort(ntohs(addr4->sin_port)); in OnRecvMessage()
336 remoteInfo.SetPort(ntohs(addr6->sin6_port)); in OnRecvMessage()
1233 context->address_.SetPort(ntohs(addr4.sin_port)); in ExecGetRemoteAddress()
1246 context->address_.SetPort(ntohs(addr6.sin6_port)); in ExecGetRemoteAddress()
1568 context->address_.SetPort(ntohs(addr4.sin_port)); in GetIPv4Address()
1591 context->address_.SetPort(ntohs(addr6.sin6_port)); in GetIPv6Address()
1670 localAddress.SetPort(ntohs(addrIn->sin_port)); in ExecTcpConnectionGetLocalAddress()
1677 localAddress.SetPort(ntohs(addrIn6->sin6_port)); in ExecTcpConnectionGetLocalAddress()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dglobal_proxy_plugin_test.cpp60 httpProxy.SetPort(9090);
77 httpProxy.SetPort(1234);
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/client/
H A DTlsSocketBranchTest.cpp74 netAddress.SetPort(0); in BaseOption()
205 netAddress.SetPort(PORT);
239 netAddress.SetPort(0);
H A DTlsSocketCertChainOneWayTest.cpp33 address.SetPort(std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in MockCertChainOneWayNetAddress()
168 netAddress.SetPort(address.GetPort()); in __anondf24d1200e02()
H A DTlsSocketOneWayTest.cpp33 address.SetPort(std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in MockOneWayNetAddress()
169 netAddress.SetPort(address.GetPort()); in __anon018adc4f0e02()
H A DTlsSocketUnilateralConnection.cpp40 address.SetPort(std::atoi(TlsUtilsTest::ChangeToFile(PORT).c_str())); in MockConnectionNetAddress()
221 netAddress.SetPort(address.GetPort()); in __anon659a62bd0d02()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/include/
H A Dnet_address.h41 void SetPort(uint16_t port);
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/options/include/
H A Dsocket_remote_info.h36 void SetPort(uint16_t port);
H A Dnet_address.h46 void SetPort(uint16_t port);
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/options/src/
H A Dnet_address.cpp43 void NetAddress::SetPort(uint16_t port) in SetPort() function in OHOS::NetManagerStandard::NetAddress
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/options/src/
H A Dsocket_remote_info.cpp40 void SocketRemoteInfo::SetPort(uint16_t port) in SetPort() function in OHOS::NetStack::Socket::SocketRemoteInfo
/ohos5.0/foundation/communication/netstack/test/fuzztest/socket/fuzztest/tlssocket_fuzzer/
H A Dtls_socket_fuzzer.cpp74 netAddress.SetPort(GetData<uint16_t>()); in BindFuzzTest()
109 netAddress.SetPort(GetData<uint16_t>()); in ConnectFuzzTest()
316 address.SetPort(port); in SetNetAddressFuzzTest()
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dhttp_proxy.h48 void inline SetPort(uint16_t port) in SetPort() function
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/tls/src/context/
H A Dtls_bind_context.cpp56 address_.SetPort(port); in ParseParams()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/src/
H A Dsetglobalhttpproxy_context.cpp52 …httpProxy_.SetPort(static_cast<uint16_t>(NapiUtils::GetUint32Property(GetEnv(), params[0], "port")… in ParseParams()
/ohos5.0/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_port.h57 int32_t SetPort(int32_t portId, int32_t powerRole, int32_t dataRole,
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/server/
H A DTlsSocketServerTest.cpp167 address.SetPort(std::atoi(ChangeToFile(PORT).c_str()));
175 netAddress.SetPort(address.GetPort()); in __anon487d28ab0902()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dmulticast_membership_context.cpp45 …address_.SetPort(static_cast<uint16_t>(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_PORT)… in ParseParams()
H A Dtcp_server_listen_context.cpp65 address_.SetPort(port); in ParseParams()
H A Dbind_context.cpp64 address_.SetPort(port); in ParseParams()
H A Dconnect_context.cpp72 options.address.SetPort(port); in ParseParams()
H A Dudp_send_context.cpp68 options.address.SetPort(port); in ParseParams()
/ohos5.0/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscanner_info.cpp92 void ScanDeviceInfoTCP::SetPort(const std::string& port_) in SetPort() function in OHOS::Scan::ScanDeviceInfoTCP
174 SetPort(parcel.ReadString()); in ReadFromParcel()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/context/
H A Dset_iface_config_context.cpp110 config_->httpProxy_.SetPort(port); in ParseHttpProxy()

123