Пример #1
0
        internal void RemoteSCB(SCB scb)
        {
            lock (_SCBLockObj)
            {
                scb.Close();

                if (_RemoteIPToSCB.ContainsKey(scb.RemoteIPEndPoint))
                {
                    try
                    {
                        if (_RemoteIPToSCB[scb.RemoteIPEndPoint].WorkSocket.Connected)
                        {
                            _RemoteIPToSCB[scb.RemoteIPEndPoint].WorkSocket.Close();
                        }
                    }
                    catch
                    {
                    }

                    _RemoteIPToSCB.Remove(scb.RemoteIPEndPoint);
                }
            }
        }