Searched refs:socket (Results 1 - 25 of 180) sorted by relevance

12345678

/system/bt/osi/include/
H A Dsocket.h30 typedef void (*socket_cb)(socket_t* socket, void* context);
32 // Returns a new socket object. The socket is in an idle, disconnected state
37 // Returns a new socket object backed by |fd|. The socket object is in whichever
44 // Frees a socket object created by |socket_new| or |socket_accept|. |socket|
45 // may be NULL. If the socket was connected, it will be disconnected.
46 void socket_free(socket_t* socket);
48 // Puts |socket| i
[all...]
/system/bt/osi/src/
H A Dsocket.cc21 #include "osi/include/socket.h"
29 #include <sys/socket.h>
55 ret->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
57 LOG_ERROR(LOG_TAG, "%s unable to create socket: %s", __func__,
86 void socket_free(socket_t* socket) { argument
87 if (!socket) return;
89 socket_unregister(socket);
90 close(socket->fd);
91 osi_free(socket);
94 bool socket_listen(const socket_t* socket, port_ argument
116 socket_accept(const socket_t* socket) argument
133 socket_read(const socket_t* socket, void* buf, size_t count) argument
143 socket_write(const socket_t* socket, const void* buf, size_t count) argument
153 socket_write_and_transfer_fd(const socket_t* socket, const void* buf, size_t count, int fd) argument
187 socket_bytes_available(const socket_t* socket) argument
195 socket_register(socket_t* socket, reactor_t* reactor, void* context, socket_cb read_cb, socket_cb write_cb) argument
213 socket_unregister(socket_t* socket) argument
223 socket_t* socket = static_cast<socket_t*>(context); local
230 socket_t* socket = static_cast<socket_t*>(context); local
[all...]
/system/core/include/cutils/
H A Duevent.h21 #include <sys/socket.h>
28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/libcutils/include/cutils/
H A Duevent.h21 #include <sys/socket.h>
28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/libcutils/include_vndk/cutils/
H A Duevent.h21 #include <sys/socket.h>
28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/sepolicy/private/
H A Daccess_vectors34 # Define a common prefix for socket access vectors.
37 common socket
51 # socket-specific
233 class socket
234 inherits socket
237 inherits socket
244 inherits socket
250 inherits socket
268 inherits socket
271 inherits socket
[all...]
/system/sepolicy/reqd_mask/
H A Daccess_vectors34 # Define a common prefix for socket access vectors.
37 common socket
51 # socket-specific
233 class socket
234 inherits socket
237 inherits socket
244 inherits socket
250 inherits socket
268 inherits socket
271 inherits socket
[all...]
/system/sepolicy/prebuilts/api/26.0/private/
H A Daccess_vectors33 # Define a common prefix for socket access vectors.
36 common socket
49 # socket-specific
231 class socket
232 inherits socket
235 inherits socket
242 inherits socket
248 inherits socket
266 inherits socket
269 inherits socket
[all...]
/system/core/libsysutils/src/
H A DNetlinkListener.cpp21 #include <sys/socket.h>
25 #include <linux/netlink.h> /* out of order because must follow sys/socket.h */
36 NetlinkListener::NetlinkListener(int socket) : argument
37 SocketListener(socket, false) {
42 NetlinkListener::NetlinkListener(int socket, int format) : argument
43 SocketListener(socket, false), mFormat(format) {
48 int socket = cli->getSocket(); local
57 count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
H A DFrameworkClient.cpp27 FrameworkClient::FrameworkClient(int socket) { argument
28 mSocket = socket;
/system/core/include/sysutils/
H A DNetlinkListener.h37 NetlinkListener(int socket);
38 NetlinkListener(int socket, int format);
40 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
/system/core/libsysutils/include/sysutils/
H A DNetlinkListener.h37 NetlinkListener(int socket);
38 NetlinkListener(int socket, int format);
40 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
/system/bt/hci/src/
H A Dhci_inject.cc34 #include "osi/include/socket.h"
45 socket_t* socket; member in struct:__anon734
53 static void accept_ready(socket_t* socket, void* context);
54 static void read_ready(socket_t* socket, void* context);
127 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { argument
128 CHECK(socket != NULL);
129 CHECK(socket == listen_socket);
131 socket = socket_accept(socket);
132 if (!socket) retur
147 read_ready(UNUSED_ATTR socket_t* socket, void* context) argument
[all...]
/system/core/libcutils/
H A Duevent.c23 #include <sys/socket.h>
32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) argument
35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &uid);
41 * socket's peer.
47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid) argument
49 return uevent_kernel_recv(socket, buffer, length, true, uid);
52 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid) argument
68 ssize_t n = recvmsg(socket, &hdr, 0);
115 s = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT);
H A Dsocket_inaddr_any_server_unix.c23 #include <sys/socket.h>
43 s = socket(AF_INET6, type, 0);
/system/core/adb/
H A Dtest_adb.py27 import socket namespace
146 # Use SO_LINGER to cause TCP RST segment to be sent on socket close.
153 sock.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER,
156 linger = sock.getsockopt(socket.SOL_SOCKET, socket.SO_LINGER, 16)
168 socket.socket(socket.AF_INET, socket
[all...]
H A Djdwp_service.cpp27 #include <sys/socket.h>
42 when adbd starts, it creates a unix server socket
75 - it attaches the first socket in the pair to a local socket
76 which is itself attached to the transport's remote socket:
79 - it sends the file descriptor of the second socket directly
90 then, the JDWP thread uses this new socket descriptor as its
114 due to the way adb works, this doesn't need a special socket
115 type or fancy handling of socket termination if either the debugger
124 ** for each JDWP process, we record its pid and its connected socket
137 JdwpProcess(int socket) argument
178 int socket = -1; member in struct:JdwpProcess
219 jdwp_process_event(int socket, unsigned events, void* _proc) argument
[all...]
/system/nvram/hal/
H A Dfake-nvram-seccomp-arm.policy17 # Control socket operation.
30 # File and socket I/O.
40 socket: 1
H A Dfake-nvram-seccomp-arm64.policy17 # Control socket operation.
30 # File and socket I/O.
40 socket: 1
H A Dfake-nvram-seccomp-x86.policy17 # Control socket operation.
31 # File and socket I/O.
41 socket: 1
H A Dfake-nvram-seccomp-x86_64.policy17 # Control socket operation.
30 # File and socket I/O.
40 socket: 1
/system/bt/btif/src/
H A Dbtif_sock_sco.cc25 #include <sys/socket.h>
40 #include "osi/include/socket.h"
43 // This module provides a socket abstraction for SCO connections to a higher
58 // socket_read_ready_cb() - local host closed SCO socket
63 socket_t* socket; member in struct:__anon677
71 static void sco_socket_free_locked(sco_socket_t* socket);
77 static void socket_read_ready_cb(socket_t* socket, void* context);
137 socket_t* socket = NULL; local
141 LOG_ERROR(LOG_TAG, "%s unable to allocate socket pair: %s", __func__,
148 LOG_ERROR(LOG_TAG, "%s unable to allocate new SCO socket
313 socket_read_ready_cb(UNUSED_ATTR socket_t* socket, void* context) argument
[all...]
/system/netd/client/
H A DFwmarkClient.h20 #include <sys/socket.h>
27 // Returns true if a socket of the given |family| should be sent to the fwmark server to have
/system/netd/libnetdutils/include/netdutils/
H A DSocket.h21 #include <sys/socket.h>
/system/core/init/
H A Dproperty_service.h20 #include <sys/socket.h>

Completed in 482 milliseconds

12345678