• Home
  • Raw
  • Download

Lines Matching refs:msg

128     switch(p->msg.command){  in print_packet()
140 label, tag, p->msg.arg0, p->msg.arg1, p->msg.data_length); in print_packet()
141 count = p->msg.data_length; in print_packet()
165 p->msg.command = A_OKAY; in send_ready()
166 p->msg.arg0 = local; in send_ready()
167 p->msg.arg1 = remote; in send_ready()
175 p->msg.command = A_CLSE; in send_close()
176 p->msg.arg0 = local; in send_close()
177 p->msg.arg1 = remote; in send_close()
210 cp->msg.command = A_CNXN; in send_connect()
211 cp->msg.arg0 = t->get_protocol_version(); in send_connect()
212 cp->msg.arg1 = t->get_max_payload(); in send_connect()
223 cp->msg.data_length = connection_str.length(); in send_connect()
300 t->update_version(p->msg.arg0, p->msg.arg1); in handle_new_connection()
302 p->msg.data_length); in handle_new_connection()
321 D("handle_packet() %c%c%c%c", ((char*) (&(p->msg.command)))[0], in handle_packet()
322 ((char*) (&(p->msg.command)))[1], in handle_packet()
323 ((char*) (&(p->msg.command)))[2], in handle_packet()
324 ((char*) (&(p->msg.command)))[3]); in handle_packet()
327 switch(p->msg.command){ in handle_packet()
329 if(p->msg.arg0){ in handle_packet()
346 if (p->msg.arg0 == ADB_AUTH_TOKEN) { in handle_packet()
350 send_auth_response(p->data, p->msg.data_length, t); in handle_packet()
355 } else if (p->msg.arg0 == ADB_AUTH_SIGNATURE) { in handle_packet()
356 if (adb_auth_verify(t->token, p->data, p->msg.data_length)) { in handle_packet()
364 } else if (p->msg.arg0 == ADB_AUTH_RSAPUBLICKEY) { in handle_packet()
365 adb_auth_confirm_key(p->data, p->msg.data_length, t); in handle_packet()
370 if (t->online && p->msg.arg0 != 0 && p->msg.arg1 == 0) { in handle_packet()
372 name[p->msg.data_length > 0 ? p->msg.data_length - 1 : 0] = 0; in handle_packet()
375 send_close(0, p->msg.arg0, t); in handle_packet()
377 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
386 if (t->online && p->msg.arg0 != 0 && p->msg.arg1 != 0) { in handle_packet()
387 if((s = find_local_socket(p->msg.arg1, 0))) { in handle_packet()
390 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
393 } else if (s->peer->id == p->msg.arg0) { in handle_packet()
398 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); in handle_packet()
404 send_close(p->msg.arg1, p->msg.arg0, t); in handle_packet()
410 if (t->online && p->msg.arg1 != 0) { in handle_packet()
411 if((s = find_local_socket(p->msg.arg1, p->msg.arg0))) { in handle_packet()
422 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet()
424 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet()
433 if (t->online && p->msg.arg0 != 0 && p->msg.arg1 != 0) { in handle_packet()
434 if((s = find_local_socket(p->msg.arg1, p->msg.arg0))) { in handle_packet()
435 unsigned rid = p->msg.arg0; in handle_packet()
436 p->len = p->msg.data_length; in handle_packet()
448 printf("handle_packet: what is %08x?!\n", p->msg.command); in handle_packet()