Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 22 of 22) sorted by relevance

/device/generic/goldfish/dhcp/common/
Dsocket.cpp86 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/
Dshared_fd.cpp210 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 …]
Dshared_fd.h139 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/
Dbind_to_localhost.cpp20 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/
Dvsock-test.c56 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/
Dns.c172 (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/
DPowerStateListener.cpp97 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/
DSocketComm.cpp85 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/
Dtqftpserv.c269 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/
Dhelper.cpp42 int ok = connect(fd, (struct sockaddr*)&addr, sizeof(addr)); in main()
/device/generic/goldfish/dhcp/common/include/
Dsocket.h38 Result bind(const void* sockaddr, size_t sockaddrLength);
/device/generic/goldfish/dhcp/client/
Drouter.cpp79 reinterpret_cast<sockaddr*>(&nlAddress), in sendNetlinkMessage()
Dinterface.cpp140 reinterpret_cast<sockaddr*>(&nlAddr), in setAddress()
/device/generic/goldfish-opengl/system/hwc3/
DDrmEventListener.cpp47 int ret = bind(mEventFd, (struct sockaddr*)&addr, sizeof(addr)); in init()
/device/google/cuttlefish/common/libs/net/
Dnetlink_client.cpp153 netlink_fd_->Bind(reinterpret_cast<sockaddr*>(&address_), sizeof(address_)); in OpenNetlink()
/device/google/trout/tests/hal/vehicle/2.0/
DGrpcServer_test.cpp119 ASSERT_EQ(connect(power_socket_fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)), 0); in WriteToPowerStateSocket()
/device/linaro/dragonboard/shared/utils/bdaddr/
Dbdaddr.c89 if (bind(s, (struct sockaddr*) &addr, sizeof(addr)) < 0) { in btmgmt_connect()
/device/generic/car/emulator/usbpt/usbip-service/
DUsbIpUtils.cpp94 if (connect(info->sock_fd, (struct sockaddr *)&address, sizeof(address)) == in get_usbip_connection()
/device/generic/goldfish/wifi/wifi_hal/
Dnetlink.cpp75 reinterpret_cast<struct sockaddr*>(&addr), in init()
/device/generic/goldfish/tnc/
Dmain.cpp88 reinterpret_cast<struct sockaddr*>(&addr), in runServer()
/device/linaro/poplar/wifi/wifi_hal/
Dwifi_hal.cpp135 struct sockaddr *addr = NULL; in wifi_create_nl_socket()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c6373 if (connect(fd, (struct sockaddr *)(&sa), sizeof(sa)) < 0) {