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 | 74 struct sockaddr_in serv_addr; in StartServer() local 78 memset(&serv_addr, 0, sizeof(serv_addr)); in StartServer() 79 serv_addr.sin_family = AF_INET; in StartServer() 80 serv_addr.sin_addr.s_addr = INADDR_ANY; in StartServer() 81 serv_addr.sin_port = htons(kPort); in StartServer() 84 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer() 153 struct sockaddr_in serv_addr; in ConnectClient() local 154 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient() 155 serv_addr.sin_family = AF_INET; in ConnectClient() 156 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectClient() [all …]
|
/system/extras/simpleperf/ |
D | UnixSocket.cpp | 31 bool is_abstract, sockaddr_un& serv_addr) { in CreateUnixSocketAddress() argument 32 memset(&serv_addr, 0, sizeof(serv_addr)); in CreateUnixSocketAddress() 33 serv_addr.sun_family = AF_UNIX; in CreateUnixSocketAddress() 34 size_t sun_path_len = sizeof(serv_addr.sun_path); in CreateUnixSocketAddress() 35 char* p = serv_addr.sun_path; in CreateUnixSocketAddress() 56 sockaddr_un serv_addr; in Create() local 57 if (!CreateUnixSocketAddress(server_path, is_abstract, serv_addr)) { in Create() 60 if (bind(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), sizeof(serv_addr)) < in Create() 92 sockaddr_un serv_addr; in Connect() local 93 if (!CreateUnixSocketAddress(server_path, is_abstract, serv_addr)) { in Connect() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | test_environment.cc | 125 struct sockaddr_in serv_addr; in ConnectToRemoteServer() local 126 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToRemoteServer() 127 serv_addr.sin_family = AF_INET; in ConnectToRemoteServer() 128 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToRemoteServer() 129 serv_addr.sin_port = htons(port); in ConnectToRemoteServer() 131 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
|
/system/bt/test/rootcanal/ |
D | bluetooth_hci.cc | 255 struct sockaddr_in serv_addr; in ConnectToRemoteServer() local 256 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectToRemoteServer() 257 serv_addr.sin_family = AF_INET; in ConnectToRemoteServer() 258 serv_addr.sin_addr.s_addr = INADDR_ANY; in ConnectToRemoteServer() 259 serv_addr.sin_port = htons(port); in ConnectToRemoteServer() 261 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
|