摘要 |
A method for AP and STA access on the basis of multiple cores and multiple threads. The method comprises: setting the number of AP message processing threads and the number of STA message processing threads; sequentially creating the AP message processing threads and the STA message processing threads according to the number of the AP message processing threads and the number of the STA message processing threads; when a main entry information receiving thread receives an external message, sending the external message to a message queue of AP message threads if the external message is determined as an AP message; sending the external message to a message queue of STA message threads if the external message is determined as a STA message; recording STA information into an AP table when a STA is online, and deleting the STA information from the AP table when the STA is offline, and converting a STA online and offline message processing thread into an AP message processing thread; deleting STA information recorded under an AP from the AP table when the AP is offline, and converting an AP thread into a STA message processing thread when a STA offline message is caused by AP offline processing. |