socks5.Socks5Server.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            if (!started) return;
            _server.Stop();
            for (int i = 0; i < Clients.Count; i++)
            {
                Clients[i].Client.Disconnect();
            }
            Clients.Clear();
            started = false;
        }

Usage Example

 protected override void OnClosed(EventArgs e)
 {
     ni.Visible = false;
     proxy.Stop();
     base.OnClosed(e);
     App.Current.Shutdown();
 }
All Usage Examples Of socks5.Socks5Server::Stop