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

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