Introduction - If you have any usage issues, please Google them yourself
Account server functionality is divided into two parts:
1, the client logging thread: obtaining certification ID number AuthenID.
Client to connect to account server (can be changed after the UDP)
Login server account to the account database search
Back certification ID number, and disconnect (such as error return error)
Pass the certification total points thread ID number, forward to the game server, game servers for players to log on.
2, real-time total points: with the game server to connect communications, computing players to use points. (Can increase the thread priority)
Sign in to game server startup account server.
Players log in real time to send a message to the account server design point.
Notify the account server players quit.
Player Points to notify the game server running out kicking.
Game server to server query account surplus points (total points, timing, billing dealt with separately)
3, the main thread: Create two sub-threads. Processing