Lines Matching refs:socket

32    when adbd starts, it creates a unix server socket
65 - it attaches the first socket in the pair to a local socket
66 which is itself attached to the transport's remote socket:
69 - it sends the file descriptor of the second socket directly
80 then, the JDWP thread uses this new socket descriptor as its
104 due to the way adb works, this doesn't need a special socket
105 type or fancy handling of socket termination if either the debugger
114 ** for each JDWP process, we record its pid and its connected socket
121 #include <sys/socket.h>
128 int socket;
186 if (proc->socket >= 0) {
187 adb_shutdown(proc->socket);
188 adb_close(proc->socket);
189 proc->socket = -1;
214 jdwp_process_alloc( int socket )
224 proc->socket = socket;
229 proc->fde = fdevent_create( socket, jdwp_process_event, proc );
255 jdwp_process_event( int socket, unsigned events, void* _proc )
266 int len = recv( socket, p, size, 0 );
306 int len = recv(socket, buf, sizeof(buf), 0);
320 D( "ignoring unexpected JDWP %d control socket activity (%d bytes)\n",
362 flags = fcntl(proc->socket,F_GETFL,0);
365 D("failed to get cntl flags for socket %d: %s\n",
371 if (fcntl(proc->socket, F_SETFL, flags & ~O_NONBLOCK) == -1) {
372 D("failed to remove O_NONBLOCK flag for socket %d: %s\n",
378 ret = sendmsg(proc->socket, &msg, 0);
396 if (fcntl(proc->socket, F_SETFL, flags) == -1) {
397 D("failed to set O_NONBLOCK flag for socket %d: %s\n",
434 D("%s: socket pair creation failed: %s\n",
453 /* name of the debug control Unix socket */
479 D( "vm debug control socket name too long (%d extra chars)\n",
488 s = socket( AF_UNIX, SOCK_STREAM, 0 );
490 D( "could not create vm debug control socket. %d: %s\n",
498 D( "could not bind vm debug control socket: %d: %s\n",
505 D("listen failed in jdwp control socket: %d: %s\n",
515 D( "could not create fdevent for jdwp control socket\n" );
524 D("jdwp control socket started (%d)\n", control->listen_socket);
550 /* the socket is probably closed ? */
551 D( "weird accept() failed on jdwp control socket: %s\n",
572 asocket socket;
604 asocket* peer = jdwp->socket.peer;
628 install_local_socket(&s->socket);
630 s->socket.ready = jdwp_socket_ready;
631 s->socket.enqueue = jdwp_socket_enqueue;
632 s->socket.close = jdwp_socket_close;
635 return &s->socket;
644 asocket socket;
664 asocket* peer = t->socket.peer;
706 /* you can't write to this socket */
727 install_local_socket(&t->socket);
729 t->socket.ready = jdwp_tracker_ready;
730 t->socket.enqueue = jdwp_tracker_enqueue;
731 t->socket.close = jdwp_tracker_close;
734 return &t->socket;