Exemplo n.º 1
0
 public void Start()
 {
     _Secure_Tcp_Listener = new SecureTcp.Secure_Tcp_Listener(_Key, _Port);
     _Secure_Tcp_Listener.NewClientEvent += _Secure_Tcp_Listener_NewClient;
     ClientCount = 0;
     _Secure_Tcp_Listener.Start();
 }
Exemplo n.º 2
0
        public void Stop()
        {
            lock (_ClientLock)
            {
                foreach (var item in _Clients)
                {
                    item.Dispose();
                }
                _Clients.Clear();
            }

            if (_Secure_Tcp_Listener != null)
            {
                _Secure_Tcp_Listener.Dispose();
            }
            _Secure_Tcp_Listener = null;
            ClientCount          = 0;
        }