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

1234

/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);
H A Dabort_socket.h17 /* Helper to perform abortable blocking operations on a socket:
25 * Calling close() on a regular POSIX socket does not abort blocked syscalls on
26 * that socket in other threads.
28 * After calling asocket_abort() the socket cannot be reused.
30 * Call asocket_destory() *after* all threads have finished with the socket to
31 * finish closing the socket and free the asocket structure.
33 * The helper is implemented by setting the socket non-blocking to initiate
35 * on both the primary socket and a local pipe. This makes the poll() abortable
42 * socket, due to the local pipe. It may be possible to use a global pipe per
43 * process rather than per socket, bu
[all...]
/system/core/libsysutils/src/
H A DNetlinkListener.cpp19 #include <sys/socket.h>
34 NetlinkListener::NetlinkListener(int socket) : argument
35 SocketListener(socket, false) {
40 NetlinkListener::NetlinkListener(int socket, int format) : argument
41 SocketListener(socket, false), mFormat(format) {
46 int socket = cli->getSocket(); local
51 socket, mBuffer, sizeof(mBuffer), &uid));
H A DFrameworkClient.cpp11 FrameworkClient::FrameworkClient(int socket) { argument
12 mSocket = socket;
H A DSocketClient.cpp3 #include <sys/socket.h>
14 SocketClient::SocketClient(int socket, bool owned) { argument
15 init(socket, owned, false);
18 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { argument
19 init(socket, owned, useCmdNum);
22 void SocketClient::init(int socket, bool owned, bool useCmdNum) { argument
23 mSocket = socket;
38 int err = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds);
/system/core/rootdir/etc/
H A Ddbus.conf8 <!-- Only allow socket-credentials-based authentication -->
11 <!-- Only listen on a local socket. (abstract=/path/to/socket
15 <listen>unix:path=/dev/socket/dbus</listen>
17 <!-- Allow everything, D-Bus socket is protected by unix filesystem
/system/core/include/sysutils/
H A DNetlinkListener.h36 NetlinkListener(int socket);
37 NetlinkListener(int socket, int format);
39 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
/system/bluetooth/tools/
H A Dsock_shutdown_bug_tcp.c20 #include <sys/socket.h>
34 fd = socket(PF_INET, SOCK_STREAM, 0);
52 fd = socket(PF_INET, SOCK_STREAM, 0);
H A Dsock_shutdown_bug_l2cap.c20 #include <sys/socket.h>
36 fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP);
H A Dsock_shutdown_bug_rfcomm.c20 #include <sys/socket.h>
37 fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
50 fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
/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, &user);
41 * socket's peer.
47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, argument
64 ssize_t n = recvmsg(socket, &hdr, 0);
107 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
H A Dsocket_inaddr_any_server.c27 #include <sys/socket.h>
47 s = socket(AF_INET, type, 0);
H A Dsocket_loopback_client.c27 #include <sys/socket.h>
48 s = socket(AF_INET, type, 0);
H A Dsocket_loopback_server.c29 #include <sys/socket.h>
47 s = socket(AF_INET, type, 0);
H A Dsocket_network_client.c27 #include <sys/socket.h>
54 s = socket(hp->h_addrtype, type, 0);
H A Dsocket_local_server.c36 #include <sys/socket.h>
48 * Binds a pre-created socket(AF_LOCAL) 's' to 'name'
89 /** Open a server-side UNIX domain datagram socket in the Linux non-filesystem
100 s = socket(AF_LOCAL, type, 0);
/system/core/adb/
H A Djdwp_service.c12 when adbd starts, it creates a unix server socket
45 - it attaches the first socket in the pair to a local socket
46 which is itself attached to the transport's remote socket:
49 - it sends the file descriptor of the second socket directly
60 then, the JDWP thread uses this new socket descriptor as its
84 due to the way adb works, this doesn't need a special socket
85 type or fancy handling of socket termination if either the debugger
94 ** for each JDWP process, we record its pid and its connected socket
101 #include <sys/socket
109 int socket; member in struct:JdwpProcess
235 jdwp_process_event( int socket, unsigned events, void* _proc ) argument
552 asocket socket; member in struct:__anon281
626 asocket socket; member in struct:JdwpTracker
[all...]
H A Dtest_track_devices.c3 #include <sys/socket.h>
66 s = socket( PF_INET, SOCK_STREAM, 0 );
H A Dtest_track_jdwp.c3 #include <sys/socket.h>
66 s = socket( PF_INET, SOCK_STREAM, 0 );
/system/core/libnl_2/
H A DAndroid.mk20 socket.c \
/system/vold/
H A DNetlinkManager.cpp20 #include <sys/socket.h>
60 if ((mSock = socket(PF_NETLINK,
62 SLOGE("Unable to create uevent socket: %s", strerror(errno));
67 SLOGE("Unable to set uevent socket SO_RECBUFFORCE option: %s", strerror(errno));
72 SLOGE("Unable to set uevent socket SO_PASSCRED option: %s", strerror(errno));
77 SLOGE("Unable to bind uevent socket: %s", strerror(errno));
/system/extras/tests/bionic/libc/common/
H A Dtest_udp.c12 #include <sys/socket.h>
77 if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1)
78 diep("socket");
100 if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1)
101 diep("socket");
H A Dtest_getaddrinfo.c6 #include <sys/socket.h>
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h24 #include <sys/socket.h>
/system/core/toolbox/
H A Droute.c37 #include <sys/socket.h>
106 int s = socket(AF_INET, SOCK_DGRAM, 0);

Completed in 572 milliseconds

1234