Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run()
- {
- //**************************************************************//
- // Sit and wait until something (a web browser here) //
- // attempts to connect to us. //
- // //
- // This is run in a seperate thread otherwise our main form //
- // will lock up and become unusable. //
- //**************************************************************//
- Console.Out.WriteLine("Thread running");
- while (true)
- {
- connection = listeningSocket.AcceptSocket();
- ConnectionThread c = new ConnectionThread(connection);
- Thread ct = new Thread(new ThreadStart(c.run));
- ct.Start();
- }
- }
Add Comment
Please, Sign In to add comment