A quick and dirty Windows Service to start and stop network services on-demand.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
470 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
namespace KnockKnock.Lib
{
public class Manager
{
List<Proxy> proxies;
public Manager()
{
proxies = new List<Proxy>();
}
public void AddProxy(Proxy p)
{
proxies.Add(p);
p.Start();
}
public void Close()
{
foreach (Proxy p in this.proxies)
{
p.Stop();
}
}
}
}