Home
last modified time | relevance | path

Searched refs:serv_addr (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/test/
Dasync_manager_unittest.cc74 struct sockaddr_in serv_addr = {}; in StartServer() local
78 serv_addr.sin_family = AF_INET; in StartServer()
79 serv_addr.sin_addr.s_addr = INADDR_ANY; in StartServer()
80 serv_addr.sin_port = htons(kPort); in StartServer()
84 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer()
158 struct sockaddr_in serv_addr; in ConnectClient() local
159 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient()
160 serv_addr.sin_family = AF_INET; in ConnectClient()
161 serv_addr.sin_addr.s_addr = *(reinterpret_cast<in_addr_t*>(server->h_addr)); in ConnectClient()
162 serv_addr.sin_port = htons(kPort); in ConnectClient()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/net/posix/
Dposix_async_socket_connector.cc59 struct sockaddr_in serv_addr {}; in ConnectToRemoteServer() struct
60 serv_addr.sin_family = AF_INET; in ConnectToRemoteServer()
61 serv_addr.sin_addr.s_addr = inet_addr(inet_ntoa(*addr_list[0])); in ConnectToRemoteServer()
62 serv_addr.sin_port = htons(port); in ConnectToRemoteServer()
65 connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host_rootcanal.cc72 struct sockaddr_in serv_addr; in ConnectToSocket() local
73 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToSocket()
74 serv_addr.sin_family = AF_INET; in ConnectToSocket()
75 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToSocket()
76 serv_addr.sin_port = htons(port); in ConnectToSocket()
78 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToSocket()