/device/generic/goldfish/dhcp/common/ |
D | socket.cpp | 86 Result Socket::bind(const void* sockaddr, size_t sockaddrLength) { in bind() argument 92 reinterpret_cast<const struct sockaddr*>(sockaddr), in bind() 102 struct sockaddr_in sockaddr; in bindIp() local 103 memset(&sockaddr, 0, sizeof(sockaddr)); in bindIp() 104 sockaddr.sin_family = AF_INET; in bindIp() 105 sockaddr.sin_port = htons(port); in bindIp() 106 sockaddr.sin_addr.s_addr = address; in bindIp() 108 return bind(&sockaddr, sizeof(sockaddr)); in bindIp() 112 struct sockaddr_ll sockaddr; in bindRaw() local 113 memset(&sockaddr, 0, sizeof(sockaddr)); in bindRaw() [all …]
|
/device/google/cuttlefish/common/libs/fs/ |
D | shared_fd.cpp | 210 int FileInstance::ConnectWithTimeout(const struct sockaddr* addr, in ConnectWithTimeout() 382 SharedFD SharedFD::Accept(const FileInstance& listener, struct sockaddr* addr, in Accept() 546 auto casted_addr = reinterpret_cast<sockaddr*>(&addr); in SocketLocalClient() 562 if (rval->Connect(reinterpret_cast<const sockaddr*>(&addr), sizeof addr) < 0) { in SocketLocalClient() 579 if (rval->ConnectWithTimeout(reinterpret_cast<const sockaddr*>(&addr), in SocketClient() 616 if (rval->ConnectWithTimeout(reinterpret_cast<const sockaddr*>(&addr), in Socket6Client() 638 if(rval->Bind(reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { in SocketLocalServer() 672 if (rval->Bind(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalServer() 725 auto casted_addr = reinterpret_cast<sockaddr*>(&addr); in VsockServer() 782 auto casted_addr = reinterpret_cast<sockaddr*>(&addr); in VsockClient() [all …]
|
D | shared_fd.h | 139 static SharedFD Accept(const FileInstance& listener, struct sockaddr* addr, 298 int Bind(const struct sockaddr* addr, socklen_t addrlen); 299 int Connect(const struct sockaddr* addr, socklen_t addrlen); 300 int ConnectWithTimeout(const struct sockaddr* addr, socklen_t addrlen, 323 int GetSockName(struct sockaddr* addr, socklen_t* addrlen); 404 FileInstance* Accept(struct sockaddr* addr, socklen_t* addrlen) const;
|
/device/generic/goldfish/fvpbase/tools/ |
D | bind_to_localhost.cpp | 20 static int (*real_bind)(int sockfd, const sockaddr* addr, socklen_t addrlen) = 21 (int (*)(int, const sockaddr*, socklen_t))dlsym(RTLD_NEXT, "bind"); 23 extern "C" int bind(int sockfd, const sockaddr* addr, socklen_t addrlen) { in bind() 29 return real_bind(sockfd, (sockaddr*)&new_sin, addrlen); in bind()
|
/device/google/cuttlefish/shared/minidroid/sample/ |
D | vsock-test.c | 56 bind(listen_fd, (struct sockaddr *)&sa_listen, sizeof(sa_listen)), in main_server() 62 accept(listen_fd, (struct sockaddr *)&sa_client, &socklen_client); in main_server() 103 check_error("connect", connect(fd, (struct sockaddr *)&sa, sizeof(sa)), fd); in main_client()
|
/device/linaro/dragonboard/shared/utils/qrtr/src/ |
D | ns.c | 172 (struct sockaddr *)dest, sizeof(*dest)); in service_announce_new() 196 (struct sockaddr *)dest, sizeof(*dest)); in service_announce_del() 218 (struct sockaddr *)to, sizeof(*to)); in lookup_notify() 372 (struct sockaddr *)&sq, sizeof(sq)); in ctrl_cmd_bye() 436 (struct sockaddr *)&sq, sizeof(sq)); in ctrl_cmd_del_client() 666 (struct sockaddr *)&ctx->bcast_sq, sizeof(ctx->bcast_sq)); in say_hello()
|
/device/google/trout/hal/vehicle/2.0/ |
D | PowerStateListener.cpp | 97 if (bind(socketfd, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { in Listen() 117 int fd = accept(socketfd, reinterpret_cast<sockaddr*>(&addr), &socklen); in Listen()
|
/device/generic/car/emulator/Conn/SocketComm/ |
D | SocketComm.cpp | 85 retVal = bind(mListenFd, reinterpret_cast<struct sockaddr*>(&servAddr), sizeof(servAddr)); in listen() 104 int sfd = ::accept(mListenFd, reinterpret_cast<struct sockaddr*>(&cliAddr), &cliLen); in accept()
|
/device/linaro/dragonboard/shared/utils/tqftpserv/ |
D | tqftpserv.c | 269 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_rrq() 346 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_wrq()
|
/device/google/trout/hal/vehicle/2.0/garage_mode_helper/ |
D | helper.cpp | 42 int ok = connect(fd, (struct sockaddr*)&addr, sizeof(addr)); in main()
|
/device/generic/goldfish/dhcp/common/include/ |
D | socket.h | 38 Result bind(const void* sockaddr, size_t sockaddrLength);
|
/device/generic/goldfish/dhcp/client/ |
D | router.cpp | 79 reinterpret_cast<sockaddr*>(&nlAddress), in sendNetlinkMessage()
|
D | interface.cpp | 140 reinterpret_cast<sockaddr*>(&nlAddr), in setAddress()
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | DrmEventListener.cpp | 47 int ret = bind(mEventFd, (struct sockaddr*)&addr, sizeof(addr)); in init()
|
/device/google/cuttlefish/common/libs/net/ |
D | netlink_client.cpp | 153 netlink_fd_->Bind(reinterpret_cast<sockaddr*>(&address_), sizeof(address_)); in OpenNetlink()
|
/device/google/trout/tests/hal/vehicle/2.0/ |
D | GrpcServer_test.cpp | 119 ASSERT_EQ(connect(power_socket_fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)), 0); in WriteToPowerStateSocket()
|
/device/linaro/dragonboard/shared/utils/bdaddr/ |
D | bdaddr.c | 89 if (bind(s, (struct sockaddr*) &addr, sizeof(addr)) < 0) { in btmgmt_connect()
|
/device/generic/car/emulator/usbpt/usbip-service/ |
D | UsbIpUtils.cpp | 94 if (connect(info->sock_fd, (struct sockaddr *)&address, sizeof(address)) == in get_usbip_connection()
|
/device/generic/goldfish/wifi/wifi_hal/ |
D | netlink.cpp | 75 reinterpret_cast<struct sockaddr*>(&addr), in init()
|
/device/generic/goldfish/tnc/ |
D | main.cpp | 88 reinterpret_cast<struct sockaddr*>(&addr), in runServer()
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | wifi_hal.cpp | 135 struct sockaddr *addr = NULL; in wifi_create_nl_socket()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | reference-ril.c | 6373 if (connect(fd, (struct sockaddr *)(&sa), sizeof(sa)) < 0) {
|