Home
last modified time | relevance | path

Searched defs:sock (Results 1 – 25 of 52) sorted by relevance

123

/system/netd/libnetdutils/include/netdutils/
DSyscalls.h117 StatusOr<SockaddrT> getsockname(Fd sock) const { in getsockname()
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt()
130 Status setsockopt(Fd sock, int level, int optname, const SockoptT& opt) const { in setsockopt()
135 Status bind(Fd sock, const SockaddrT& addr) const { in bind()
140 Status connect(Fd sock, const SockaddrT& addr) const { in connect()
162 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { in sendto()
167 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
172 StatusOr<std::pair<Slice, SockaddrT>> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
/system/bt/btif/src/
Dbtif_sock_l2cap.cc122 static char packet_get_head_l(l2cap_socket* sock, uint8_t** data, in packet_get_head_l()
154 static char packet_put_head_l(l2cap_socket* sock, const void* data, in packet_put_head_l()
181 static char packet_put_tail_l(l2cap_socket* sock, const void* data, in packet_put_tail_l()
209 l2cap_socket* sock = socks; in btsock_l2cap_find_by_id_l() local
216 static void btsock_l2cap_free_l(l2cap_socket* sock) { in btsock_l2cap_free_l()
295 l2cap_socket* sock = (l2cap_socket*)osi_calloc(sizeof(*sock)); in btsock_l2cap_alloc_l() local
374 static inline bool send_app_psm_or_chan_l(l2cap_socket* sock) { in send_app_psm_or_chan_l()
405 l2cap_socket* sock; in on_srv_l2cap_listen_started() local
442 l2cap_socket* sock; in on_cl_l2cap_init() local
461 l2cap_socket* sock) { in on_srv_l2cap_psm_connect_l()
[all …]
/system/core/fastboot/
Dsocket.cpp34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket()
127 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket()
172 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket()
251 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_DGRAM); in NewClient() local
256 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_STREAM); in NewClient() local
271 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_DGRAM); in NewServer() local
276 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_STREAM); in NewServer() local
Dsocket_mock.cpp120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept() local
145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { in AddAccept()
Dsocket_test.cpp64 static bool SendString(Socket* sock, const std::string& message) { in SendString()
70 static bool ReceiveString(Socket* sock, const std::string& message) { in ReceiveString()
175 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kUdp, 0); in TEST() local
212 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kTcp, 0); in TEST() local
Dsocket_mock.h92 std::unique_ptr<Socket> sock; member
Dtcp.cpp70 explicit TcpTransport(std::unique_ptr<Socket> sock) : socket_(std::move(sock)) {} in TcpTransport()
193 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
/system/memory/lmkd/
Dliblmkd_utils.cpp34 int lmkd_register_proc(int sock, struct lmk_procprio *params) { in lmkd_register_proc()
45 int lmkd_unregister_proc(int sock, struct lmk_procremove *params) { in lmkd_unregister_proc()
56 enum update_props_result lmkd_update_props(int sock) { in lmkd_update_props()
/system/netd/libnetdutils/
DSyscalls.cpp53 UniqueFd sock(::socket(domain, type, protocol)); in socket() local
60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt()
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind()
94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect()
102 StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const override { in ioctl()
153 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, in sendto()
162 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, in recvfrom()
DSocketOption.cpp29 Status enableSockopt(Fd sock, int level, int optname) { in enableSockopt()
35 Status enableTcpKeepAlives(Fd sock, unsigned idleTime, unsigned numProbes, unsigned probeInterval) { in enableTcpKeepAlives()
/system/core/libcutils/
Dsockets_windows.cpp53 int socket_close(cutils_socket_t sock) { in socket_close()
57 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
Dsockets_unix.cpp30 int socket_close(int sock) { in socket_close()
34 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
Dsockets.cpp34 int socket_get_local_port(cutils_socket_t sock) { in socket_get_local_port()
Dsocket_inaddr_any_server_windows.cpp42 SOCKET sock = socket(AF_INET6, type, 0); in socket_inaddr_any_server() local
Dsocket_network_client_windows.cpp54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client() local
/system/libbase/include/android-base/
Dcmsg.h67 ssize_t SendFileDescriptors(borrowed_fd sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors()
82 ssize_t ReceiveFileDescriptors(borrowed_fd sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
/system/memory/libmemunreachable/
DLeakPipe.cpp26 bool LeakPipe::SendFd(int sock, int fd) { in SendFd()
60 int LeakPipe::ReceiveFd(int sock) { in ReceiveFd()
/system/core/libstats/socket/
Dstatsd_writer.c89 int sock = TEMP_FAILURE_RETRY(socket(PF_UNIX, flags, 0)); in statsdOpen() local
130 int sock = atomic_exchange(&statsdLoggerWrite.sock, negative_errno); in __statsdClose() local
158 int sock; in statsdWrite() local
/system/core/libstats/push_compat/
Dstatsd_writer.c89 int sock = TEMP_FAILURE_RETRY(socket(PF_UNIX, flags, 0)); in statsdOpen() local
130 int sock = atomic_exchange(&statsdLoggerWrite.sock, negative_errno); in __statsdClose() local
158 int sock; in statsdWrite() local
/system/netd/server/
DNetlinkCommands.cpp35 int sock = socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, protocol); in openNetlinkSocket() local
46 int recvNetlinkAck(int sock) { in recvNetlinkAck()
97 int sock = openNetlinkSocket(NETLINK_ROUTE); in sendNetlinkRequest() local
126 int processNetlinkDump(int sock, const NetlinkDumpCallback& callback) { in processNetlinkDump()
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp34 int sock = socket(AF_INET6, SOCK_STREAM, 0); in checkNetworkExists() local
103 int sock = socket(ai->ai_family, SOCK_DGRAM, 0); in checkReachability() local
/system/core/liblog/
Dlogd_reader.cpp72 int sock = socket_local_client("logd", SOCK_STREAM); in SendLogdControlMessage() local
264 int ret, remaining, sock; in logdOpen() local
367 int sock = atomic_exchange(&logger_list->fd, -1); in LogdClose() local
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp112 int sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv4_loopback() local
169 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv6_loopback() local
/system/bt/tools/bdtool/
Dbdtool.c211 const btsock_interface_t* sock = in main() local
245 const btsock_interface_t* sock = in main() local
/system/netd/tests/
Dbpf_base_test.cpp104 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() local
124 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() local

123