Lines Matching refs:s

455 jdwp_control_event(int  s, unsigned events, void*  user);
465 int s; in jdwp_control_init() local
479 s = socket( AF_UNIX, SOCK_STREAM, 0 ); in jdwp_control_init()
480 if (s < 0) { in jdwp_control_init()
488 if (bind(s, reinterpret_cast<sockaddr*>(&addr), addrlen) < 0) { in jdwp_control_init()
491 adb_close(s); in jdwp_control_init()
495 if ( listen(s, 4) < 0 ) { in jdwp_control_init()
498 adb_close(s); in jdwp_control_init()
502 control->listen_socket = s; in jdwp_control_init()
504 control->fde = fdevent_create(s, jdwp_control_event, control); in jdwp_control_init()
507 adb_close(s); in jdwp_control_init()
513 close_on_exec(s); in jdwp_control_init()
521 jdwp_control_event( int s, unsigned events, void* _control ) in jdwp_control_event() argument
529 int s = -1; in jdwp_control_event() local
533 s = adb_socket_accept(control->listen_socket, addrp, &addrlen); in jdwp_control_event()
534 if (s < 0) { in jdwp_control_event()
548 while (s < 0); in jdwp_control_event()
550 proc = jdwp_process_alloc( s ); in jdwp_control_event()
569 jdwp_socket_close( asocket* s ) in jdwp_socket_close() argument
571 asocket* peer = s->peer; in jdwp_socket_close()
573 remove_socket(s); in jdwp_socket_close()
579 free(s); in jdwp_socket_close()
583 jdwp_socket_enqueue( asocket* s, apacket* p ) in jdwp_socket_enqueue() argument
587 s->peer->close(s->peer); in jdwp_socket_enqueue()
593 jdwp_socket_ready( asocket* s ) in jdwp_socket_ready() argument
595 JdwpSocket* jdwp = (JdwpSocket*)s; in jdwp_socket_ready()
603 p->len = jdwp_process_list((char*)p->data, s->get_max_payload()); in jdwp_socket_ready()
615 JdwpSocket* s = reinterpret_cast<JdwpSocket*>(calloc(sizeof(*s), 1)); in create_jdwp_service_socket() local
617 if (s == NULL) in create_jdwp_service_socket()
620 install_local_socket(&s->socket); in create_jdwp_service_socket()
622 s->socket.ready = jdwp_socket_ready; in create_jdwp_service_socket()
623 s->socket.enqueue = jdwp_socket_enqueue; in create_jdwp_service_socket()
624 s->socket.close = jdwp_socket_close; in create_jdwp_service_socket()
625 s->pass = 0; in create_jdwp_service_socket()
627 return &s->socket; in create_jdwp_service_socket()
664 jdwp_tracker_close( asocket* s ) in jdwp_tracker_close() argument
666 JdwpTracker* tracker = (JdwpTracker*) s; in jdwp_tracker_close()
667 asocket* peer = s->peer; in jdwp_tracker_close()
674 remove_socket(s); in jdwp_tracker_close()
679 free(s); in jdwp_tracker_close()
683 jdwp_tracker_ready( asocket* s ) in jdwp_tracker_ready() argument
685 JdwpTracker* t = (JdwpTracker*) s; in jdwp_tracker_ready()
690 p->len = jdwp_process_list_msg((char*)p->data, s->get_max_payload()); in jdwp_tracker_ready()
691 s->peer->enqueue(s->peer, p); in jdwp_tracker_ready()
696 jdwp_tracker_enqueue( asocket* s, apacket* p ) in jdwp_tracker_enqueue() argument
700 s->peer->close(s->peer); in jdwp_tracker_enqueue()