6、 2. unsigned char buf[SOCKET_MSG_CACHE_SIZE]; //buffer for storing data read from client 3. int front; 4. int rear; 5. int current; 6. int len; 7. int tag; //mark that whether the cache is full,1-full,0-not full 8. cache_strategy strategy; 9. tp_
7、socket_msg_handle handle;//callback function to invoke when a message is parsed out 10. void* args; //external parameter 11. socket_msg recv_msg; //parsed message 12.