/system/core/libsysutils/src/ |
H A D | FrameworkClient.cpp | 11 FrameworkClient::FrameworkClient(int socket) { argument 12 mSocket = socket;
|
H A D | NetlinkListener.cpp | 19 #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 D | SocketClient.cpp | 3 #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/libcutils/ |
H A D | uevent.c | 23 #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 D | mq.c | 27 #include <sys/socket.h> 108 int socket; member in union:OutgoingPacket::__anon406 201 /** Server socket path. */ 469 /** Sends a socket to the peer. */ 471 int socket = peerProxy->currentPacket->socket; local 491 // Store the socket in the message. 492 *((int *) CMSG_DATA(cmptr)) = peerProxy->currentPacket->socket; 712 // Make the socket non-blocking. 803 closeWithWarning(packet->socket); 1027 int socket = accept(listenerFd->fd, NULL, NULL); local [all...] |
/system/core/adb/ |
H A D | jdwp_service.c | 12 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:__anon282 626 asocket socket; member in struct:JdwpTracker [all...] |
H A D | sockets.c | 198 // be sure to hold the socket list lock when calling this 207 ** that belongs to this socket 302 /* if we sent the last packet of a closing socket, 359 ** socket will be placed on the closing socket list. 396 if (s == NULL) fatal("cannot allocate socket"); 405 //fprintf(stderr, "Created local socket in create_local_socket \n"); 457 /* a Remote socket is used to send/receive data to/from a given transport object 461 asocket socket; member in struct:aremotesocket 527 if (s == NULL) fatal("cannot allocate socket"); [all...] |
H A D | transport.c | 205 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd); 238 fatal_errno("cannot enqueue packet on transport socket"); 352 // while a client socket is still active. 387 asocket socket; member in struct:device_tracker 414 device_tracker_close( asocket* socket ) 416 device_tracker* tracker = (device_tracker*) socket; 417 asocket* peer = socket->peer; 429 device_tracker_enqueue( asocket* socket, apacket* p ) argument 433 device_tracker_close(socket); 443 asocket* peer = tracker->socket [all...] |
H A D | sysdeps_win32.c | 90 /* used to emulate unix-domain socket pairs */ 100 SOCKET socket; member in union:FHRec_::__anon284 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...] |