public Socks5Server(int port) { _server = new TcpServer(); _server.Listen(port); _server.ClientConnected += ServerOnClientConnected; _clients = new List<Socks5Client>(); _server.BeginAccept(); }
static void Main(string[] args) { server = new TcpServer(); server.ClientConnected += ServerOnClientConnected; server.Listen(1111); server.BeginAccept(); Console.WriteLine("Accepting clients.."); Console.ReadLine(); }