Lines Matching refs:socket

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.h>
109 int socket;
167 if (proc->socket >= 0) {
168 adb_shutdown(proc->socket);
169 adb_close(proc->socket);
170 proc->socket = -1;
195 jdwp_process_alloc( int socket )
204 proc->socket = socket;
209 proc->fde = fdevent_create( socket, jdwp_process_event, proc );
235 jdwp_process_event( int socket, unsigned events, void* _proc )
246 int len = recv( socket, p, size, 0 );
286 int len = recv(socket, buf, sizeof(buf), 0);
300 D( "ignoring unexpected JDWP %d control socket activity (%d bytes)\n",
342 flags = fcntl(proc->socket,F_GETFL,0);
345 D("failed to get cntl flags for socket %d: %s\n",
351 if (fcntl(proc->socket, F_SETFL, flags & ~O_NONBLOCK) == -1) {
352 D("failed to remove O_NONBLOCK flag for socket %d: %s\n",
358 ret = sendmsg(proc->socket, &msg, 0);
376 if (fcntl(proc->socket, F_SETFL, flags) == -1) {
377 D("failed to set O_NONBLOCK flag for socket %d: %s\n",
414 D("%s: socket pair creation failed: %s\n",
432 /* name of the debug control Unix socket */
459 D( "vm debug control socket name too long (%d extra chars)\n",
468 s = socket( AF_UNIX, SOCK_STREAM, 0 );
470 D( "could not create vm debug control socket. %d: %s\n",
478 D( "could not bind vm debug control socket: %d: %s\n",
485 D("listen failed in jdwp control socket: %d: %s\n",
495 D( "could not create fdevent for jdwp control socket\n" );
504 D("jdwp control socket started (%d)\n", control->listen_socket);
530 /* the socket is probably closed ? */
531 D( "weird accept() failed on jdwp control socket: %s\n",
552 asocket socket;
584 asocket* peer = jdwp->socket.peer;
608 install_local_socket(&s->socket);
610 s->socket.ready = jdwp_socket_ready;
611 s->socket.enqueue = jdwp_socket_enqueue;
612 s->socket.close = jdwp_socket_close;
615 return &s->socket;
626 asocket socket;
646 asocket* peer = t->socket.peer;
688 /* you can't write to this socket */
709 install_local_socket(&t->socket);
711 t->socket.ready = jdwp_tracker_ready;
712 t->socket.enqueue = jdwp_tracker_enqueue;
713 t->socket.close = jdwp_tracker_close;
716 return &t->socket;