Searched refs:serv_addr (Results 1 – 3 of 3) sorted by relevance
/hardware/interfaces/bluetooth/async/test/ |
D | async_fd_watcher_unittest.cc | 50 struct sockaddr_in serv_addr; in StartServer() local 54 memset(&serv_addr, 0, sizeof(serv_addr)); in StartServer() 55 serv_addr.sin_family = AF_INET; in StartServer() 56 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in StartServer() 57 serv_addr.sin_port = htons(kPort); in StartServer() 61 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer() 161 struct sockaddr_in serv_addr; in ConnectClient() local 162 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient() 163 serv_addr.sin_family = AF_INET; in ConnectClient() 164 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in ConnectClient() [all …]
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | async_fd_watcher_unittest.cc | 52 struct sockaddr_in serv_addr; in StartServer() local 56 memset(&serv_addr, 0, sizeof(serv_addr)); in StartServer() 57 serv_addr.sin_family = AF_INET; in StartServer() 58 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in StartServer() 59 serv_addr.sin_port = htons(kPort); in StartServer() 63 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0); in StartServer() 163 struct sockaddr_in serv_addr; in ConnectClient() local 164 memset((void*)&serv_addr, 0, sizeof(serv_addr)); in ConnectClient() 165 serv_addr.sin_family = AF_INET; in ConnectClient() 166 serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in ConnectClient() [all …]
|
/hardware/nxp/keymint/transport/ |
D | SocketTransport.cpp | 38 struct sockaddr_in serv_addr; in openConnection() local 45 serv_addr.sin_family = AF_INET; in openConnection() 46 serv_addr.sin_port = htons(PORT); in openConnection() 49 if (inet_pton(AF_INET, IPADDR, &serv_addr.sin_addr) <= 0) { in openConnection() 54 if (connect(mSocket, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) { in openConnection()
|