Searched refs:serv_addr (Results 1 – 5 of 5) sorted by relevance
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | async_manager_unittest.cc | 42 struct sockaddr_in serv_addr; in StartServer() local 46 memset(&serv_addr, 0, sizeof(serv_addr)); in StartServer() 47 serv_addr.sin_family = AF_INET; in StartServer() 48 serv_addr.sin_addr.s_addr = INADDR_ANY; in StartServer() 49 serv_addr.sin_port = htons(kPort); in StartServer() 52 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer() 107 struct sockaddr_in serv_addr; in ConnectClient() local 108 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient() 109 serv_addr.sin_family = AF_INET; in ConnectClient() 110 serv_addr.sin_addr.s_addr = *(reinterpret_cast<in_addr_t*>(server->h_addr)); in ConnectClient() [all …]
|
D | link_layer_socket_device_test.cc | 71 struct sockaddr_in serv_addr; in StartServer() local 75 memset(&serv_addr, 0, sizeof(serv_addr)); in StartServer() 76 serv_addr.sin_family = AF_INET; in StartServer() 77 serv_addr.sin_addr.s_addr = INADDR_ANY; in StartServer() 78 serv_addr.sin_port = htons(kPort); in StartServer() 81 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer() 150 struct sockaddr_in serv_addr; in ConnectClient() local 151 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient() 152 serv_addr.sin_family = AF_INET; in ConnectClient() 153 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectClient() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | test_environment.cc | 134 struct sockaddr_in serv_addr {}; in ConnectToRemoteServer() struct 135 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToRemoteServer() 136 serv_addr.sin_family = AF_INET; in ConnectToRemoteServer() 137 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToRemoteServer() 138 serv_addr.sin_port = htons(port); in ConnectToRemoteServer() 140 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
|
/system/bt/gd/hal/ |
D | hci_hal_host_rootcanal.cc | 63 struct sockaddr_in serv_addr; in ConnectToRootCanal() local 64 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToRootCanal() 65 serv_addr.sin_family = AF_INET; in ConnectToRootCanal() 66 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToRootCanal() 67 serv_addr.sin_port = htons(port); in ConnectToRootCanal() 69 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRootCanal()
|
/system/bt/test/rootcanal/ |
D | bluetooth_hci.cc | 343 struct sockaddr_in serv_addr; in ConnectToRemoteServer() local 344 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToRemoteServer() 345 serv_addr.sin_family = AF_INET; in ConnectToRemoteServer() 346 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToRemoteServer() 347 serv_addr.sin_port = htons(port); in ConnectToRemoteServer() 349 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
|