Exemple #1
0
 private void DisposeSocketPool()
 {
     sendTokenManager.Clear();
     if (sBufferManager != null)
     {
         sBufferManager.Clear();
     }
 }
        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                DisposeSocketPool();
                sendSocket.Dispose();
                sendBufferManager.Clear();
                _isDisposed = true;
            }
        }
        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                DisposeSocketPool();
                clientSocket.Dispose();
                sentBufferPool.Clear();
                _isDisposed = true;
            }
        }
Exemple #4
0
        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                DisposeSocketPool();
                receiveBufferPool.Clear();
                svcReceiveSocket.Dispose();
                _isDisposed = true;
            }
        }
        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                DisposeSocketPool();
                svcSocket.Dispose();
                recvBufferManager.Clear();
                sendBufferManager.Clear();
                _isDisposed = true;
                maxNumberAcceptedClients.Dispose();
            }
        }
Exemple #6
0
        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                acceptSemphoreClients.Dispose();
                DisposeSocketPool();
                svcSkt.Dispose();
                recvBuffer.Clear();
                sendBuffer.Clear();
                _isDisposed = true;
            }
        }
Exemple #7
0
 private void DisposeSocketPool()
 {
     _sendTokenManager.Clear();
     _sBufferManager?.Clear();
 }