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

1234

/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/libsysutils/src/
H A DNetlinkListener.cpp19 #include <sys/socket.h>
29 NetlinkListener::NetlinkListener(int socket) : argument
30 SocketListener(socket, false) {
35 int socket = cli->getSocket(); local
42 if ((count = recvmsg(socket, &hdr, 0)) < 0) {
H A DSocketClient.cpp3 #include <sys/socket.h>
13 SocketClient::SocketClient(int socket) argument
14 : mSocket(socket)
25 int err = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds);
H A DFrameworkClient.cpp11 FrameworkClient::FrameworkClient(int socket) { argument
12 mSocket = socket;
/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/nexus/
H A DTiwlanEventListener.cpp21 #include <sys/socket.h>
28 TiwlanEventListener::TiwlanEventListener(int socket) : argument
29 SocketListener(socket, false) {
H A DDhcpListener.h31 DhcpListener(Controller *c, int socket, IDhcpEventHandlers *handlers);
H A DDhcpListener.cpp18 #include <sys/socket.h>
31 DhcpListener::DhcpListener(Controller *c, int socket, IDhcpEventHandlers *handlers) : argument
32 SocketListener(socket, false) {
/system/core/adb/
H A Djdwp_service.c11 when adbd starts, it creates a unix server socket
44 - it attaches the first socket in the pair to a local socket
45 which is itself attached to the transport's remote socket:
48 - it sends the file descriptor of the second socket directly
59 then, the JDWP thread uses this new socket descriptor as its
83 due to the way adb works, this doesn't need a special socket
84 type or fancy handling of socket termination if either the debugger
93 ** for each JDWP process, we record its pid and its connected socket
100 #include <sys/socket
108 int socket; member in struct:JdwpProcess
234 jdwp_process_event( int socket, unsigned events, void* _proc ) argument
526 asocket socket; member in struct:__anon24
600 asocket socket; member in struct:JdwpTracker
[all...]
/system/core/include/sysutils/
H A DNetlinkListener.h27 NetlinkListener(int socket);
/system/core/libcutils/
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/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h17 #include <sys/socket.h>
/system/core/include/cutils/
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/toolbox/
H A Droute.c37 #include <sys/socket.h>
96 int s = socket(AF_INET, SOCK_DGRAM, 0);
/system/netd/
H A DNetlinkManager.cpp20 #include <sys/socket.h>
60 if ((mSock = socket(PF_NETLINK,
62 LOGE("Unable to create uevent socket: %s", strerror(errno));
67 LOGE("Unable to set uevent socket SO_RCVBUFFORCE option: %s", strerror(errno));
72 SLOGE("Unable to set uevent socket SO_PASSCRED option: %s", strerror(errno));
77 LOGE("Unable to bind uevent socket: %s", strerror(errno));
/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/wlan/ti/sta_dk_4_0_4_32/CUDK/IPC/Linux/
H A Dcu_ipc.c27 #include <sys/socket.h>
41 /* Store the client name in the socket address. */
50 /* Create the socket. */
51 if((clnt_sfd = socket(AF_LOCAL, SOCK_DGRAM, 0))<0)
53 printf("--config_ipc_init(): error creating socket\n");
58 /* Store the client name in the socket address. */
H A Dipc_user.c26 #include <sys/socket.h>
42 static int g_socket = 0; /* socket descriptor */
47 int ipx_sock = -1; /* IPX socket */
48 int ax25_sock = -1; /* AX.25 socket */
49 int inet_sock = -1; /* INET socket */
50 int ddp_sock = -1; /* Appletalk DDP socket */
53 * Now pick any (exisiting) useful socket family for generic queries
54 * Note : don't open all the socket, only returns when one matches,
60 /*netlink_sock=socket(PF_NETLINK, SOCK_DGRAM, 0);
63 inet_sock=socket(AF_INE
[all...]
/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");

Completed in 659 milliseconds

1234