/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/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/host/frontend/gcastv2/https/include/https/ |
D | PlainSocket.h | 33 sockaddr *address, 39 const sockaddr *addr,
|
D | BufferedSocket.h | 40 sockaddr *address, 50 const sockaddr *addr,
|
D | SSLSocket.h | 60 sockaddr *address, 66 const sockaddr *addr,
|
/device/google/cuttlefish/common/libs/fs/ |
D | shared_fd.h | 116 static SharedFD Accept(const FileInstance& listener, struct sockaddr* addr, 189 int Bind(const struct sockaddr* addr, socklen_t addrlen) { in Bind() 196 int Connect(const struct sockaddr* addr, socklen_t addrlen) { in Connect() 234 int GetSockName(struct sockaddr* addr, socklen_t* addrlen) { in GetSockName() 246 GetSockName(reinterpret_cast<struct sockaddr*>(&vm_socket), &length); in VsockServerPort() 388 FileInstance* Accept(struct sockaddr* addr, socklen_t* addrlen) const { in Accept()
|
D | shared_fd.cpp | 204 SharedFD SharedFD::Accept(const FileInstance& listener, struct sockaddr* addr, in Accept() 289 if (rval->Connect(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalClient() 304 if (rval->Connect(reinterpret_cast<const sockaddr*>(&addr), in SocketLocalClient() 326 if(rval->Bind(reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { in SocketLocalServer() 358 if (rval->Bind(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalServer() 393 auto casted_addr = reinterpret_cast<sockaddr*>(&addr); in VsockServer() 420 auto casted_addr = reinterpret_cast<sockaddr*>(&addr); in VsockClient()
|
D | vm_sockets.h | 38 …unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) - si…
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | PlainSocket.cpp | 36 sockaddr *address, in recvfrom() 44 const sockaddr *addr, in sendto()
|
D | ServerSocket.cpp | 74 res = bind(mSocket, reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in ServerSocket() 133 int s = accept(mSocket, reinterpret_cast<sockaddr *>(&addr), &addrLen); in acceptIncomingConnection()
|
D | SSLSocket.cpp | 303 sockaddr *address, in recvfrom() 405 const sockaddr *addr, in sendto()
|
D | HTTPClientConnection.cpp | 94 mImpl->fd(), reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in connect()
|
/device/generic/goldfish/radio/ril/ |
D | if_monitor.cpp | 62 static const void* getSockAddrData(const struct sockaddr* addr) { in getSockAddrData() 132 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in init() 199 int getPrefix(const struct sockaddr* addr) { in getPrefix() 282 reinterpret_cast<struct sockaddr*>(&storage), in onReadAvailable()
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | TcpStream.cpp | 48 if (bind(s, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { in _socket_loopback_server() 97 clientSock = ::accept(m_sock, (sockaddr *)&addr, &len); in accept()
|
/device/generic/goldfish/network/netmgr/ |
D | monitor.cpp | 61 reinterpret_cast<struct sockaddr*>(&storage), in onReadAvailable() 138 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in openSocket()
|
/device/generic/goldfish/dhcp/common/include/ |
D | socket.h | 38 Result bind(const void* sockaddr, size_t sockaddrLength);
|
/device/linaro/dragonboard/qcom/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/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/google/cuttlefish/tools/play_audio/ |
D | client_socket.cpp | 63 if (connect(socket_fd_, reinterpret_cast<sockaddr*>(&server_addr),
|
/device/google/cuttlefish/common/libs/net/ |
D | netlink_client.cpp | 138 netlink_fd_->Bind(reinterpret_cast<sockaddr*>(&address_), sizeof(address_)); in OpenNetlink()
|
/device/google/cuttlefish/host/frontend/webrtc/ |
D | adb_handler.cpp | 130 if (connect(sock, reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) < in setupSocket()
|
/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/dragonboard/qcom/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()
|