• Home
  • Raw
  • Download

Lines Matching refs:s

419 jdwp_control_event(int  s, unsigned events, void*  user);
429 int s; in jdwp_control_init() local
443 s = socket( AF_UNIX, SOCK_STREAM, 0 ); in jdwp_control_init()
444 if (s < 0) { in jdwp_control_init()
452 if (bind(s, (struct sockaddr*)&addr, addrlen) < 0) { in jdwp_control_init()
455 adb_close(s); in jdwp_control_init()
459 if ( listen(s, 4) < 0 ) { in jdwp_control_init()
462 adb_close(s); in jdwp_control_init()
466 control->listen_socket = s; in jdwp_control_init()
468 control->fde = fdevent_create(s, jdwp_control_event, control); in jdwp_control_init()
471 adb_close(s); in jdwp_control_init()
484 jdwp_control_event( int s, unsigned events, void* _control ) in jdwp_control_event() argument
491 int s = -1; in jdwp_control_event() local
495 s = adb_socket_accept( control->listen_socket, &addr, &addrlen ); in jdwp_control_event()
496 if (s < 0) { in jdwp_control_event()
510 while (s < 0); in jdwp_control_event()
512 proc = jdwp_process_alloc( s ); in jdwp_control_event()
531 jdwp_socket_close( asocket* s ) in jdwp_socket_close() argument
533 asocket* peer = s->peer; in jdwp_socket_close()
535 remove_socket(s); in jdwp_socket_close()
541 free(s); in jdwp_socket_close()
545 jdwp_socket_enqueue( asocket* s, apacket* p ) in jdwp_socket_enqueue() argument
549 s->peer->close(s->peer); in jdwp_socket_enqueue()
555 jdwp_socket_ready( asocket* s ) in jdwp_socket_ready() argument
557 JdwpSocket* jdwp = (JdwpSocket*)s; in jdwp_socket_ready()
577 JdwpSocket* s = calloc(sizeof(*s),1); in create_jdwp_service_socket() local
579 if (s == NULL) in create_jdwp_service_socket()
582 install_local_socket(&s->socket); in create_jdwp_service_socket()
584 s->socket.ready = jdwp_socket_ready; in create_jdwp_service_socket()
585 s->socket.enqueue = jdwp_socket_enqueue; in create_jdwp_service_socket()
586 s->socket.close = jdwp_socket_close; in create_jdwp_service_socket()
587 s->pass = 0; in create_jdwp_service_socket()
589 return &s->socket; in create_jdwp_service_socket()
628 jdwp_tracker_close( asocket* s ) in jdwp_tracker_close() argument
630 JdwpTracker* tracker = (JdwpTracker*) s; in jdwp_tracker_close()
631 asocket* peer = s->peer; in jdwp_tracker_close()
638 remove_socket(s); in jdwp_tracker_close()
643 free(s); in jdwp_tracker_close()
647 jdwp_tracker_ready( asocket* s ) in jdwp_tracker_ready() argument
649 JdwpTracker* t = (JdwpTracker*) s; in jdwp_tracker_ready()
655 s->peer->enqueue(s->peer, p); in jdwp_tracker_ready()
660 jdwp_tracker_enqueue( asocket* s, apacket* p ) in jdwp_tracker_enqueue() argument
664 s->peer->close(s->peer); in jdwp_tracker_enqueue()