Searched refs:sockfd (Results 1 - 14 of 14) sorted by relevance

/system/connectivity/shill/net/
H A Dsockets.cc42 int Sockets::Accept(int sockfd, argument
45 return HANDLE_EINTR(accept(sockfd, addr, addrlen));
48 int Sockets::AttachFilter(int sockfd, struct sock_fprog* pf) const { argument
49 return setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, pf, sizeof(*pf));
52 int Sockets::Bind(int sockfd, argument
55 return bind(sockfd, addr, addrlen);
58 int Sockets::BindToDevice(int sockfd, const std::string& device) const { argument
63 return setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, &dev_name,
67 int Sockets::ReuseAddress(int sockfd) const {
69 return setsockopt(sockfd, SOL_SOCKE
72 AddMulticastMembership(int sockfd, in_addr_t addr) const argument
83 Connect(int sockfd, const struct sockaddr* addr, socklen_t addrlen) const argument
97 GetSockName(int sockfd, struct sockaddr* addr, socklen_t* addrlen) const argument
118 Listen(int sockfd, int backlog) const argument
122 RecvFrom(int sockfd, void* buf, size_t len, int flags, struct sockaddr* src_addr, socklen_t* addrlen) const argument
139 Send(int sockfd, const void* buf, size_t len, int flags) const argument
146 SendTo(int sockfd, const void* buf, size_t len, int flags, const struct sockaddr* dest_addr, socklen_t addrlen) const argument
160 SetReceiveBuffer(int sockfd, int size) const argument
165 ShutDown(int sockfd, int how) const argument
[all...]
H A Dmock_sockets.h34 MOCK_CONST_METHOD3(Accept, int(int sockfd, struct sockaddr* addr,
36 MOCK_CONST_METHOD2(AttachFilter, int(int sockfd, struct sock_fprog* pf));
37 MOCK_CONST_METHOD3(Bind, int(int sockfd, const struct sockaddr* addr,
39 MOCK_CONST_METHOD2(BindToDevice, int(int sockfd, const std::string& device));
40 MOCK_CONST_METHOD1(ReuseAddress, int(int sockfd));
41 MOCK_CONST_METHOD2(AddMulticastMembership, int(int sockfd, in_addr_t addr));
43 MOCK_CONST_METHOD3(Connect, int(int sockfd, const struct sockaddr* addr,
46 MOCK_CONST_METHOD3(GetSockName, int(int sockfd, struct sockaddr* addr,
51 MOCK_CONST_METHOD6(RecvFrom, ssize_t(int sockfd,
62 MOCK_CONST_METHOD4(Send, ssize_t(int sockfd, cons
[all...]
H A Dsockets.h43 virtual int Accept(int sockfd,
47 // getsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, ...)
48 virtual int AttachFilter(int sockfd, struct sock_fprog* pf) const;
51 virtual int Bind(int sockfd,
56 virtual int BindToDevice(int sockfd, const std::string& device) const;
59 virtual int ReuseAddress(int sockfd) const;
62 virtual int AddMulticastMembership(int sockfd, in_addr_t addr) const;
68 virtual int Connect(int sockfd,
79 virtual int GetSockName(int sockfd,
83 // getsockopt(sockfd, SOL_SOCKE
[all...]
H A Dnetlink_socket_unittest.cc76 ssize_t FakeSuccessfulRead(int sockfd, void* buf, size_t len, int flags, argument
/system/core/include/cutils/
H A Dqtaguid.h31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
36 extern int qtaguid_untagSocket(int sockfd);
/system/core/libcutils/
H A Dqtaguid.c101 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument
108 snprintf(lineBuf, sizeof(lineBuf), "t %d %" PRIu64 " %d", sockfd, kTag, uid);
110 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid);
115 sockfd, kTag, tag, uid, res);
121 int qtaguid_untagSocket(int sockfd) { argument
125 ALOGV("Untagging socket %d", sockfd);
127 snprintf(lineBuf, sizeof(lineBuf), "u %d", sockfd);
130 ALOGI("Untagging socket %d failed errno=%d", sockfd, res);
/system/bt/hci/test/
H A Dhci_hal_h4_test.cpp149 socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd);
150 dummy_serial_fd = sockfd[0];
172 int sockfd[2];
215 expect_socket_data(sockfd[1], DATA_TYPE_COMMAND, sample_data1 + 1);
219 expect_socket_data(sockfd[1], DATA_TYPE_ACL, sample_data2 + 1);
223 expect_socket_data(sockfd[1], DATA_TYPE_SCO, sample_data3 + 1);
229 write_packet(sockfd[1], DATA_TYPE_ACL, acl_data);
230 write_packet(sockfd[1], HCI_BLE_EVENT, corrupted_data);
231 write_packet(sockfd[1], DATA_TYPE_SCO, sco_data);
232 write_packet(sockfd[
[all...]
/system/netd/client/
H A DNetdClient.cpp52 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { argument
53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags);
75 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { argument
76 if (sockfd >= 0 && addr && FwmarkClient::shouldSetFwmark(addr->sa_family)) {
78 if (int error = FwmarkClient().send(&command, sockfd)) {
83 return libcConnect(sockfd, addr, addrlen);
/system/bt/service/ipc/
H A Dlinux_ipc_host.h39 // LinuxIPCHost owns the passed sockfd.
40 LinuxIPCHost(int sockfd, bluetooth::Adapter* adapter);
H A Dlinux_ipc_host.cpp77 LinuxIPCHost::LinuxIPCHost(int sockfd, Adapter* adapter) argument
78 : adapter_(adapter), pfds_(1, {sockfd, POLLIN, 0}) {}
/system/connectivity/shill/
H A Deap_listener_unittest.cc63 ssize_t SimulateRecvFrom(int sockfd, void* buf, size_t len, int flags,
105 ssize_t EapListenerTest::SimulateRecvFrom(int sockfd, void* buf, size_t len, argument
H A Darp_client_unittest.cc62 ssize_t SimulateRecvFrom(int sockfd, void* buf, size_t len, int flags,
129 ssize_t ArpClientTest::SimulateRecvFrom(int sockfd, void* buf, size_t len, argument
H A Dhttp_request_unittest.cc286 void OnConnectCompletion(bool result, int sockfd) { argument
287 request_->OnConnectCompletion(result, sockfd);
H A Dhttp_proxy_unittest.cc388 void OnConnectCompletion(bool result, int sockfd) { argument
389 proxy_.OnConnectCompletion(result, sockfd);

Completed in 207 milliseconds