示例#1
0
        public ClientSession(TCPSession tcpSession, NetworkSyncQueue networkSyncQueue, IProtocolResolver protocolResolver)
        {
            this.mTcpNetworkQueue = new WeakReference(networkSyncQueue);
            this.mTcpSession      = tcpSession;

            mTcpSession.SetClientSession(this);
            mTcpSession.SetProtocolResolver(protocolResolver);
        }
 /// <summary>
 /// 연결 완료
 /// </summary>
 /// <param name="tcp_session">The tcp_session.</param>
 public void OnConnnectComplete(TCPSession tcpSession)
 {
     mNetworkSyncQueue = new NetworkSyncQueue();
     mClientSession    = new ClientSession(tcpSession, mNetworkSyncQueue, mProtocolResolver);
 }