/device/generic/goldfish/network/wifi_forwarder/ |
D | netlink_socket.cpp | 30 if (mSocket) { in ~NetlinkSocket() 31 nl_socket_free(mSocket); in ~NetlinkSocket() 32 mSocket = nullptr; in ~NetlinkSocket() 38 if (mSocket || mCallback) { in init() 45 mSocket = nl_socket_alloc_cb(mCallback); in init() 46 if (!mSocket) { in init() 53 int res = nl_socket_set_buffer_size(mSocket, rxBufferSize, txBufferSize); in setBufferSizes() 107 int status = genl_connect(mSocket); in connectGeneric() 116 return genl_ctrl_resolve(mSocket, familyName); in resolveNetlinkFamily() 120 int status = nl_send_auto(mSocket, message.get()) >= 0; in send() [all …]
|
D | netlink_socket.h | 80 struct nl_sock* mSocket = nullptr; variable
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | ServerSocket.cpp | 44 mSocket(-1), in ServerSocket() 54 mSocket = socket(PF_INET, SOCK_STREAM, 0); in ServerSocket() 55 if (mSocket < 0) { in ServerSocket() 60 makeFdNonblocking(mSocket); in ServerSocket() 63 res = setsockopt(mSocket, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)); in ServerSocket() 74 res = bind(mSocket, reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in ServerSocket() 80 res = listen(mSocket, 4); in ServerSocket() 90 close(mSocket); in ServerSocket() 91 mSocket = -1; in ServerSocket() 98 if (mSocket >= 0) { in ~ServerSocket() [all …]
|
D | BaseConnection.cpp | 24 mSocket(std::make_unique<PlainSocket>(mRunLoop, sock)), in BaseConnection() 34 mSocket->postRecv(makeSafeCallback(this, &BaseConnection::onClientRequest)); in receiveClientRequest() 44 n = mSocket->recv(&mInBuffer[mInBufferLen], kMaxChunkSize); in onClientRequest() 79 mSocket->postSend( in send() 91 ssize_t n = mSocket->send(mOutBuffer.data() + offset, size - offset); in sendOutputData() 113 mSocket->postSend( in sendOutputData() 120 return mSocket->fd(); in fd()
|
/device/generic/goldfish/wifi/wifi_hal/ |
D | netlink.cpp | 42 , mSocket(-1) { in Netlink() 48 closeIfOpen(&mSocket); in ~Netlink() 54 if (mSocket != -1) { in init() 65 mSocket = ::socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_ROUTE); in init() 66 if (mSocket == -1) { in init() 74 status = ::bind(mSocket, in init() 100 fds[0].fd = mSocket; in eventLoop() 122 if (fd.fd == mSocket) { in eventLoop() 165 int bytesSent = ::send(mSocket, message.data(), message.size(), 0); in sendMessage()
|
D | netlink.h | 52 int mSocket; variable
|
/device/google/cuttlefish/host/frontend/gcastv2/webrtc/ |
D | AdbWebSocketHandler.cpp | 143 mSocket(-1) { in AdbWebSocketHandler() 149 mAdbConnection = std::make_shared<AdbConnection>(this, mRunLoop, mSocket); in AdbWebSocketHandler() 153 if (mSocket >= 0) { in ~AdbWebSocketHandler() 154 close(mSocket); in ~AdbWebSocketHandler() 155 mSocket = -1; in ~AdbWebSocketHandler() 204 mSocket = sock; in setupSocket()
|
D | STUNClient.cpp | 61 mSocket = std::make_shared<PlainSocket>(mRunLoop, sock); in STUNClient() 82 mSocket->fd(), in onSendRequest() 95 mSocket->postRecv( in onSendRequest() 109 auto n = mSocket->recvfrom( in onReceiveResponse() 155 mSocket->postSend( in scheduleRequest()
|
D | RTPSocketHandler.cpp | 139 mSocket = tmp; in RTPSocketHandler() 185 mSocket->postRecv(makeSafeCallback(this, &RTPSocketHandler::onReceive)); in run() 194 mSocket->postRecv(makeSafeCallback(this, &RTPSocketHandler::onTCPConnect)); in onTCPConnect() 209 mSocket = std::make_shared<PlainSocket>(mRunLoop, sock); in onTCPConnect() 211 mSocket->postRecv(makeSafeCallback(this, &RTPSocketHandler::onTCPReceive)); in onTCPConnect() 217 auto n = mSocket->recv( in onTCPReceive() 250 mSocket->postRecv(makeSafeCallback(this, &RTPSocketHandler::onTCPReceive)); in onTCPReceive() 261 auto n = mSocket->recvfrom( in onReceive() 266 mSocket->postRecv(makeSafeCallback(this, &RTPSocketHandler::onReceive)); in onReceive() 580 mSocket->postSend( in queueTCPOutputPacket() [all …]
|
/device/generic/goldfish/dhcp/client/ |
D | dhcpclient.cpp | 73 res = mSocket.open(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in init() 78 res = mSocket.bindRaw(mInterface.getIndex()); in init() 218 fds.fd = mSocket.get(); in waitAndReceive() 478 Result res = mSocket.receiveRawUdp(PORT_BOOTP_CLIENT, msg, &isValid); in receiveDhcpMessage() 536 Result res = mSocket.sendRawUdp(INADDR_ANY, in sendMessage()
|
D | dhcpclient.h | 101 Socket mSocket; variable
|
/device/google/cuttlefish/host/frontend/gcastv2/webrtc/include/webrtc/ |
D | AdbWebSocketHandler.h | 45 int mSocket; member
|
D | STUNClient.h | 46 std::shared_ptr<PlainSocket> mSocket; member
|
D | RTPSocketHandler.h | 92 std::shared_ptr<BufferedSocket> mSocket; member
|
/device/google/cuttlefish/host/frontend/gcastv2/https/include/https/ |
D | BaseConnection.h | 49 std::unique_ptr<BufferedSocket> mSocket; member
|
D | ServerSocket.h | 63 int mSocket; member
|