Home
last modified time | relevance | path

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

12

/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/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/host/frontend/gcastv2/https/include/https/
DPlainSocket.h33 sockaddr *address,
39 const sockaddr *addr,
DBufferedSocket.h40 sockaddr *address,
50 const sockaddr *addr,
DSSLSocket.h60 sockaddr *address,
66 const sockaddr *addr,
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.h116 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()
Dshared_fd.cpp204 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()
Dvm_sockets.h38 …unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) - si…
/device/google/cuttlefish/host/frontend/gcastv2/https/
DPlainSocket.cpp36 sockaddr *address, in recvfrom()
44 const sockaddr *addr, in sendto()
DServerSocket.cpp74 res = bind(mSocket, reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in ServerSocket()
133 int s = accept(mSocket, reinterpret_cast<sockaddr *>(&addr), &addrLen); in acceptIncomingConnection()
DSSLSocket.cpp303 sockaddr *address, in recvfrom()
405 const sockaddr *addr, in sendto()
DHTTPClientConnection.cpp94 mImpl->fd(), reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in connect()
/device/generic/goldfish/radio/ril/
Dif_monitor.cpp62 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/
DTcpStream.cpp48 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/
Dmonitor.cpp61 reinterpret_cast<struct sockaddr*>(&storage), in onReadAvailable()
138 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in openSocket()
/device/generic/goldfish/dhcp/common/include/
Dsocket.h38 Result bind(const void* sockaddr, size_t sockaddrLength);
/device/linaro/dragonboard/qcom/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/generic/goldfish/dhcp/client/
Drouter.cpp79 reinterpret_cast<sockaddr*>(&nlAddress), in sendNetlinkMessage()
Dinterface.cpp140 reinterpret_cast<sockaddr*>(&nlAddr), in setAddress()
/device/google/cuttlefish/tools/play_audio/
Dclient_socket.cpp63 if (connect(socket_fd_, reinterpret_cast<sockaddr*>(&server_addr),
/device/google/cuttlefish/common/libs/net/
Dnetlink_client.cpp138 netlink_fd_->Bind(reinterpret_cast<sockaddr*>(&address_), sizeof(address_)); in OpenNetlink()
/device/google/cuttlefish/host/frontend/webrtc/
Dadb_handler.cpp130 if (connect(sock, reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) < in setupSocket()
/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/dragonboard/qcom/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()

12