public NetClientThread() { msgExHandlers = new Dictionary <short, MsgExHandler>(); msgHandlers = new Dictionary <Int16, MsgHandler>(); msgTypes = new Dictionary <Int16, Type>(); recvMsgs = new Queue <RecvBuffer>(); sendMsgs = new Queue <SendBuffer>(); m_netEncrypt = new NetEncrypt(); cacheSendMsgs = new CachePool <SendBuffer>(); cacheRecvMsgs = new CachePool <RecvBuffer>(30); Start(); }