Searched refs:socket (Results 51 - 75 of 89) sorted by relevance

1234

/system/core/libnetutils/
H A Dpacket.c20 #include <sys/socket.h>
47 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) {
48 return fatal("socket(PF_PACKET)");
59 return fatal("Cannot bind raw socket to interface");
H A Difc_utils.c23 #include <sys/socket.h>
121 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM, 0);
123 printerr("socket() failed: %s\n", strerror(errno));
135 ifc_ctl_sock6 = socket(AF_INET6, SOCK_DGRAM, 0);
137 printerr("socket() failed: %s\n", strerror(errno));
314 s = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
/system/core/libnl_2/
H A Dnetlink.c23 #include <sys/socket.h>
103 /* Receive a set of messages from a netlink socket */
203 /* Send raw data over netlink socket */
247 /* Create and connect netlink socket */
254 /* Create RX socket */
255 sk->s_fd = socket(PF_NETLINK, SOCK_RAW, protocol);
263 /* Bind RX socket */
/system/core/toolbox/
H A Diftop.c40 #include <sys/socket.h>
75 s = socket(AF_INET, SOCK_DGRAM, 0);
77 perror("socket");
H A Dnetstat.c35 #include <sys/socket.h>
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dl2cap.h24 #include <sys/socket.h>
/system/core/init/
H A Dkeywords.h82 KEYWORD(socket, OPTION, 0, 0)
H A Dutil.c32 #include <sys/socket.h>
83 * create_socket - creates a Unix domain socket in ANDROID_SOCKET_DIR
84 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the
96 fd = socket(PF_UNIX, type, 0);
98 ERROR("Failed to open socket '%s': %s\n", name, strerror(errno));
109 ERROR("Failed to unlink old socket '%s': %s\n", name, strerror(errno));
124 ERROR("Failed to bind socket '%s': %s\n", name, strerror(errno));
136 INFO("Created socket '%s' with mode '%o', user '%d', group '%d'\n",
H A Dbuiltins.c25 #include <sys/socket.h>
175 s = socket(AF_INET, SOCK_DGRAM, 0);
/system/core/libcutils/
H A Dzygote.c32 #include <sys/socket.h>
176 // The command socket is passed to the peer as close-on-exec
187 // Wait for socket to close
214 * ZYGOTE_RETRY_MILLIS for the zygote socket to be available.
H A Dabort_socket.c21 #include <sys/socket.h>
31 /* set primary socket to non-blocking */
281 socket. Clients should not rely on this behavior - it is racy because we
283 all threads are done with the socket before calling asocket_destory().
/system/netd/
H A DSecondaryTableController.cpp22 #include <sys/socket.h>
H A Dndc.c25 #include <sys/socket.h>
45 // try interpreting the first arg as the socket name - if it fails go back to netd
58 printf("Using alt socket %s\n", argv[1]);
H A DDnsProxyListener.cpp24 #include <sys/socket.h>
H A DNatController.cpp21 #include <sys/socket.h>
H A DTetherController.cpp22 #include <sys/socket.h>
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp19 * This socket tagging test is to ensure that the
29 #include <sys/socket.h>
98 fd = socket(AF_INET, SOCK_STREAM, 0);
100 testPrintE("socket creation failed: %s", strerror(errno));
104 testPrintE("socket setup: failed to tag");
109 testPrintE("socket setup: Unexpected results: tag not found");
114 testPrintE("socket setup: Unexpected results");
121 /* checkTag() also tries to lookup the socket address in the kernel and
125 * Without the kernel reporting more info on who setup the socket tag, it is
/system/core/libion/
H A Dion_test.c9 #include <sys/socket.h>
180 printf("could not get recv_fd from socket");
/system/core/libnl_2/genl/
H A Dgenl.c23 #include <sys/socket.h>
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp25 #include <sys/socket.h>
73 * Parse an binary message from a NETLINK_ROUTE netlink socket.
161 * netlink socket.
H A DSocketListener.cpp19 #include <sys/socket.h>
79 SLOGE("Obtaining file descriptor socket '%s' failed: %s",
87 SLOGE("Unable to listen on socket (%s)", strerror(errno));
/system/security/keystore-engine/
H A Deng_keystore.cpp30 #include <sys/socket.h>
/system/core/adb/
H A Dsysdeps_win32.c90 /* used to emulate unix-domain socket pairs */
100 SOCKET socket; member in union:FHRec_::__anon283
112 #define fh_socket u.socket
468 /***** socket-based file descriptors *****/
497 /* gently tell any peer that we're closing the socket */
596 s = socket(AF_INET, type, 0);
598 D("socket_loopback_client: could not create socket\n" );
635 s = socket(AF_INET, type, 0);
686 s = socket(hp->h_addrtype, type, 0);
722 s = socket(AF_INE
[all...]
/system/bluetooth/tools/
H A Dasocket_test.c17 /** socket testing */
30 #include <sys/socket.h>
119 printf("%d: socket()\n", gettid());
120 ret = socket(family, typ, protocol);
121 printf("%d: socket() = %d\n", gettid(), ret);
H A Dsocktest.c17 /** socket testing */
31 #include <sys/socket.h>
118 printf("%ld: socket()\n", pthread_self());
119 ret = socket(family, typ, protocol);
120 printf("%ld: socket() = %d\n", pthread_self(), ret);

Completed in 202 milliseconds

1234