| 647 | } |
| 648 | |
| 649 | TNetItemList* CSockLink::GetItemList(int32_t type) |
| 650 | { |
| 651 | TNetItemList* list = NULL; |
| 652 | switch (type) |
| 653 | { |
| 654 | case LINK_IDLE_LIST: |
| 655 | list = &this->_idle_list; |
| 656 | break; |
| 657 | |
| 658 | case LINK_CONN_LIST: |
| 659 | list = &this->_wait_connect; |
| 660 | break; |
| 661 | |
| 662 | case LINK_SEND_LIST: |
| 663 | list = &this->_wait_send; |
| 664 | break; |
| 665 | |
| 666 | case LINK_RECV_LIST: |
| 667 | list = &this->_wait_recv; |
| 668 | break; |
| 669 | |
| 670 | default: |
| 671 | break; |
| 672 | } |
| 673 | |
| 674 | return list; |
| 675 | } |
| 676 | |
| 677 | void CSockLink::AppendToList(int32_t type, CNetHandler* item) |
| 678 | { |
no outgoing calls
no test coverage detected