Inheritance: IDisposable
コード例 #1
0
        /// <summary>
        /// 
        /// </summary>
        public new void Dispose()
        {
            m_buffManager.FreeBuffer(this);
            m_buffManager = null;

            base.Dispose();
        }
コード例 #2
0
        /// <summary>
        /// 
        /// </summary>
        public AbstractSocketClient()
        {
            m_bufferManager = new BufferManager(1024, 1000);
            m_saeaRecvPool = new ObjectPool<PoolableSocketAsyncEventArgs>(() => new PoolableSocketAsyncEventArgs(m_bufferManager));
            m_saeaSendPool = new ObjectPool<SocketAsyncEventArgs>(() => new SocketAsyncEventArgs());
            m_connectSaea = new SocketAsyncEventArgs();
            m_connectSaea.Completed += IOCompleted;

            OnConnectedEvent += OnConnected;
            OnDisconnectedEvent += OnDisconnected;
        }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="bufferManager"></param>
 public PoolableSocketAsyncEventArgs(BufferManager bufferManager)
 {
     m_buffManager = bufferManager;
     m_buffManager.SetBuffer(this);
 }