Lines Matching refs:address
89 Socket::NetAddress address; in SetCertChainOneWayHwTestShortParam() local
91 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS))); in SetCertChainOneWayHwTestShortParam()
92 address.SetPort(std::atoi(ReadFileContent(PORT).c_str())); in SetCertChainOneWayHwTestShortParam()
93 address.SetFamilyBySaFamily(AF_INET); in SetCertChainOneWayHwTestShortParam()
100 options.SetNetAddress(address); in SetCertChainOneWayHwTestShortParam()
103 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in SetCertChainOneWayHwTestShortParam()
111 Socket::NetAddress address; in SetCertChainOneWayHwTestLongParam() local
113 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS))); in SetCertChainOneWayHwTestLongParam()
114 address.SetPort(std::atoi(ReadFileContent(PORT).c_str())); in SetCertChainOneWayHwTestLongParam()
115 address.SetFamilyBySaFamily(AF_INET); in SetCertChainOneWayHwTestLongParam()
126 options.SetNetAddress(address); in SetCertChainOneWayHwTestLongParam()
129 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in SetCertChainOneWayHwTestLongParam()
140 Socket::NetAddress address; variable
142 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS)));
143 address.SetPort(std::atoi(ReadFileContent(PORT).c_str()));
144 address.SetFamilyBySaFamily(AF_INET);
146 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anon117668480602()
211 Socket::NetAddress address; variable
213 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS)));
214 address.SetPort(std::atoi(ReadFileContent(PORT).c_str()));
215 address.SetFamilyBySaFamily(AF_INET);
222 options.SetNetAddress(address);
225 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anon117668480d02()
229 server.GetRemoteAddress([&netAddress](int32_t errCode, const Socket::NetAddress &address) { in __anon117668480f02() argument
231 netAddress.SetAddress(address.GetAddress()); in __anon117668480f02()
232 netAddress.SetPort(address.GetPort()); in __anon117668480f02()
233 netAddress.SetFamilyBySaFamily(address.GetSaFamily()); in __anon117668480f02()
236 EXPECT_EQ(address.GetPort(), std::atoi(ReadFileContent(PORT).c_str()));