Lines Matching refs:address
89 Socket::NetAddress address; in SetCertChainHwTestShortParam() local
91 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS))); in SetCertChainHwTestShortParam()
92 address.SetPort(std::atoi(ReadFileContent(PORT).c_str())); in SetCertChainHwTestShortParam()
93 address.SetFamilyBySaFamily(AF_INET); in SetCertChainHwTestShortParam()
100 options.SetNetAddress(address); in SetCertChainHwTestShortParam()
103 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in SetCertChainHwTestShortParam()
111 Socket::NetAddress address; in SetCertChainHwTestLongParam() local
113 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS))); in SetCertChainHwTestLongParam()
114 address.SetPort(std::atoi(ReadFileContent(PORT).c_str())); in SetCertChainHwTestLongParam()
115 address.SetFamilyBySaFamily(AF_INET); in SetCertChainHwTestLongParam()
126 options.SetNetAddress(address); in SetCertChainHwTestLongParam()
129 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in SetCertChainHwTestLongParam()
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 __anonad6a07d50602()
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 __anonad6a07d50d02()
229 server.GetRemoteAddress([&netAddress](int32_t errCode, const Socket::NetAddress &address) { in __anonad6a07d50f02() argument
231 netAddress.SetAddress(address.GetAddress()); in __anonad6a07d50f02()
232 netAddress.SetPort(address.GetPort()); in __anonad6a07d50f02()
233 netAddress.SetFamilyBySaFamily(address.GetSaFamily()); in __anonad6a07d50f02()
236 EXPECT_EQ(address.GetPort(), std::atoi(ReadFileContent(PORT).c_str()));
380 Socket::NetAddress address; variable
382 address.SetAddress(GetIp(ReadFileContent(IP_ADDRESS)));
383 address.SetPort(std::atoi(ReadFileContent(PORT).c_str()));
384 address.SetFamilyBySaFamily(AF_INET);
396 options.SetNetAddress(address);
400 server.Bind(address, [](int32_t errCode) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonad6a07d52102()