• Home
  • Raw
  • Download

Lines Matching refs:peer

119         if(s->transport == t || (s->peer && s->peer->transport == t)) {  in close_all_sockets()
218 if(s->peer) { in local_socket_close_locked()
219 s->peer->peer = 0; in local_socket_close_locked()
221 if (s->peer->close == local_socket_close) in local_socket_close_locked()
222 local_socket_close_locked(s->peer); in local_socket_close_locked()
224 s->peer->close(s->peer); in local_socket_close_locked()
295 s->peer->ready(s->peer); in local_socket_event_func()
323 if((avail == MAX_PAYLOAD) || (s->peer == 0)) { in local_socket_event_func()
328 r = s->peer->enqueue(s->peer, p); in local_socket_event_func()
432 p->msg.arg0 = s->peer->id; in remote_socket_enqueue()
444 p->msg.arg0 = s->peer->id; in remote_socket_ready()
454 if(s->peer) { in remote_socket_close()
455 p->msg.arg0 = s->peer->id; in remote_socket_close()
456 s->peer->peer = 0; in remote_socket_close()
457 s->peer->close(s->peer); in remote_socket_close()
469 asocket* peer = s->peer; in remote_socket_disconnect() local
472 if (peer) { in remote_socket_disconnect()
473 peer->peer = NULL; in remote_socket_disconnect()
474 peer->close(peer); in remote_socket_disconnect()
652 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) { in smart_socket_enqueue()
670 sendfailmsg(s->peer->fd, "unknown host service"); in smart_socket_enqueue()
681 adb_write(s->peer->fd, "OKAY", 4); in smart_socket_enqueue()
683 s->peer->ready = local_socket_ready; in smart_socket_enqueue()
684 s->peer->close = local_socket_close; in smart_socket_enqueue()
685 s->peer->peer = s2; in smart_socket_enqueue()
686 s2->peer = s->peer; in smart_socket_enqueue()
687 s->peer = 0; in smart_socket_enqueue()
702 sendfailmsg(s->peer->fd, error_string); in smart_socket_enqueue()
712 sendfailmsg(s->peer->fd, "device offline (x)"); in smart_socket_enqueue()
722 s->peer->ready = local_socket_ready_notify; in smart_socket_enqueue()
723 s->peer->close = local_socket_close_notify; in smart_socket_enqueue()
724 s->peer->peer = 0; in smart_socket_enqueue()
726 s->peer->transport = s->transport; in smart_socket_enqueue()
728 connect_to_remote(s->peer, (char*) (p->data + 4)); in smart_socket_enqueue()
729 s->peer = 0; in smart_socket_enqueue()
753 if(s->peer) { in smart_socket_close()
754 s->peer->peer = 0; in smart_socket_close()
755 s->peer->close(s->peer); in smart_socket_close()
784 s->peer = ss; in connect_to_smartsocket()
785 ss->peer = s; in connect_to_smartsocket()