att_server.c (6e79178071d53abab3a109ef7afc0c6bac4840d0) | att_server.c (ff3cc4a5378c2f681cc9b75cf54d154a12a3051e) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 682 unchanged lines hidden (view full) --- 691 hci_con_handle_t last_send_con_handle = HCI_CON_HANDLE_INVALID; 692 att_server_t * request_att_server = NULL; 693 int can_send_now = 1; 694 int phase_index; 695 696 for (phase_index = ATT_SERVER_RUN_PHASE_1_REQUESTS; phase_index <= ATT_SERVER_RUN_PHASE_3_NOTIFICATIONS; phase_index++){ 697 att_server_run_phase_t phase = (att_server_run_phase_t) phase_index; 698 hci_con_handle_t skip_connections_until = att_server_last_can_send_now; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 682 unchanged lines hidden (view full) --- 691 hci_con_handle_t last_send_con_handle = HCI_CON_HANDLE_INVALID; 692 att_server_t * request_att_server = NULL; 693 int can_send_now = 1; 694 int phase_index; 695 696 for (phase_index = ATT_SERVER_RUN_PHASE_1_REQUESTS; phase_index <= ATT_SERVER_RUN_PHASE_3_NOTIFICATIONS; phase_index++){ 697 att_server_run_phase_t phase = (att_server_run_phase_t) phase_index; 698 hci_con_handle_t skip_connections_until = att_server_last_can_send_now; |
699 while (1){ | 699 while (true){ |
700 btstack_linked_list_iterator_t it; 701 hci_connections_get_iterator(&it); 702 while(btstack_linked_list_iterator_has_next(&it)){ 703 hci_connection_t * connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it); 704 att_server_t * att_server = &connection->att_server; 705 706 int data_ready = att_server_data_ready_for_phase(att_server, phase); 707 --- 497 unchanged lines hidden --- | 700 btstack_linked_list_iterator_t it; 701 hci_connections_get_iterator(&it); 702 while(btstack_linked_list_iterator_has_next(&it)){ 703 hci_connection_t * connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it); 704 att_server_t * att_server = &connection->att_server; 705 706 int data_ready = att_server_data_ready_for_phase(att_server, phase); 707 --- 497 unchanged lines hidden --- |